How to use the @lrnwebcomponents/license-element/license-element.js.licenseList function in @lrnwebcomponents/license-element

To help you get started, we’ve selected a few @lrnwebcomponents/license-element examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elmsln / lrnwebcomponents / elements / citation-element / src / citation-element.js View on Github external
property: "scope",
            title: "Scope",
            description: "Scope of what to cite.",
            inputMethod: "select",
            options: {
              sibling: "Sibling element",
              parent: "Parent element"
            },
            icon: "code"
          },
          {
            property: "license",
            title: "License",
            description: "The source url for the element this is citing.",
            inputMethod: "select",
            options: new licenseList("select"),
            icon: "link"
          },
          {
            property: "creator",
            title: "Creator",
            description: "Who made or owns this.",
            inputMethod: "textfield",
            icon: "link"
          }
        ],
        advanced: []
      }
    };
  }
github elmsln / lrnwebcomponents / elements / citation-element / src / citation-element.js View on Github external
_licenseUpdated(newValue) {
    if (typeof newValue !== typeof undefined) {
      var list = new licenseList();
      if (typeof list[newValue] !== typeof undefined) {
        this.licenseName = list[newValue].name;
        this.licenseLink = list[newValue].link;
        this.licenseImage = list[newValue].image;
      }
    }
  }
}

@lrnwebcomponents/license-element

Semantically accurate license for a work

Apache-2.0
Latest version published 7 months ago

Package Health Score

72 / 100
Full package analysis

Popular @lrnwebcomponents/license-element functions