menu
Logo
  • Why azing?
  • Blog
  • Help
ENarrow_drop_down
  • DE
  • EN
Suche in Checklisten
search
azing Logo ENarrow_drop_down
  • DE
  • EN
  • Why azing?
  • Help
2sxc
drive_folder_upload
  • homeChecklist Templates
  • south
  • fiber_manual_recordCustomize Edit Experience
  • south
  • fiber_manual_recordCustom Input Fields (2sxc 11+)
  • south

folder_sharedCustom Input Fields (2sxc 11+)

  • homeChecklist Templates
  • south
  • fiber_manual_recordCustomize Edit Experience
  • south
  • fiber_manual_recordCustom Input Fields (2sxc 11+)
  • south

folder_sharedCustom Input Fields (2sxc 11+)

Folders and checklists

  • check_circleCreate a custom input field using WebComponents
  • check_circleCreate System folder for App-Extensions
  • check_circleInput Field Extension - Configuration-Type Naming Convention
  • check_circleMake Custom Input Field Configurable

Parts (0) expand_more

These are small document-parts which are used in other documents. They are not a starting point for any real activity. Because of this, they will be listed further down and the search will not list them unless requested. 

  1. Copy this text into your index.js
  2. Then adjust the tagName to match the name of your input field
  3. Ideally rename the class from EmptyHelloWorld to whatever you need (occurs twice in the code below)
/*
  This examples shows a plain JS WebComponent that will just show some messages
  This is just to demonstrate how such a component is built.
*/

// always use an IFFE to ensure you don't put variables in the window scope
(() => {
  const tagName = 'field-empty-app-hello-world';

  class EmptyHelloWorld extends HTMLElement {
    
    /* Constructor for WebComponents - the first line must always be super() */
    constructor() {
      super();
      console.log('FYI: EmptyHelloWorld just constructed!');
    }

    /* connectedCallback() is the standard callback when the component has been attached */
    connectedCallback() {
      this.innerHTML = 'Hello world!';
      console.log('FYI: EmptyHelloWorld just got connected!');
    }

    /** disconnectedCallback() is a standard callback for clean-up */
    disconnectedCallback() {
      console.log('FYI: EmptyHelloWorld getting disconnected - nothing to clean up');
    }
  }

  // Register this web component
  customElements.define(tagName, EmptyHelloWorld);
})();

Logo
Legal | Content Copyright CC-BY 4.0
bug_reportReport Bug
  • info
  • Links
  • Permissions
code Share
code
URL copied to clipboard.
Embed Checklist close
Copy Copy
Content Copyright

CC-BY 4.0

Translations

None

2sxc - Content Management for DNN & Oqtane Logo

2sxc - Content Management for DNN & Oqtane

QR-Code
azing.org/2sxc/r/l7Eta_DQ
View & Use

Public (can be used by everybody)

Edit & Admin

Default (all members can edit)

This catalog has a simple permission model, where all members have the same permissions. For advanced permissions, upgrade to Enterprise.

Here you can see how this document is used and linked by other documents

Used in (1)

Others referencing this

  1. Create a custom input field using WebComponents
Uses these (0)

Documents linked from this document

How it Behaves

How this document is categorized changes how it behaves.

This is a partial document. It is listed below the normal documents, and is hidden in the default search.

It belongs to Create a custom input field using WebComponents

Type

This is a Template (Boilerplate). It's used for text snippets to copy/paste.

Get something to say?

Comment to start a discussion or make a note
send

please log on to chat

close

Durchsuche ganz Azing