How to use the react-dom-factories.label function in react-dom-factories

To help you get started, we’ve selected a few react-dom-factories 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 researchspace / researchspace / metaphacts-platform / web / src / main / app / ts / page / PageEditor.ts View on Github external
_.reduce(this.radioGroupEntries, (result, e: RadioGroupEntry) => {
          result.push(
            D.label(
              {
                key: e.label,
                style: {marginRight: '10px'},
              },
              createElement(Radio, {value: e.type, title: e.label}),
              e.label
            )
          );
          return result;
        }, new Array>())
      )
github researchspace / researchspace / researchspace / web / src / main / components / search / facet / FacetValue.ts View on Github external
render() {
    return D.div(
      {
        className: 'facet__relation__values__value checkbox',
        onClick: this.onValueClick.bind(this),
      },
      D.label(
        {},
        D.input(
          {
            type: 'checkbox',
            className: 'checkbox',
            checked: this.state.selected,
          }
        ),
        this.renderCheckboxLabel(),
        this.state.isLoading ? createElement(Spinner) : D.span({})
      )
    );
  }