Sha256: 91d1d73aac6f4a63cc54067a73300a05d1cbd37325f8ec3ebefbd56133afe1fe
Contents?: true
Size: 534 Bytes
Versions: 41
Compression:
Stored size: 534 Bytes
Contents
import * as React from "react"; import * as ReactDOM from "react-dom"; import Autocomplete, { AutocompleteProps } from "./components/autocomplete.component"; window.DecidimAdmin = window.DecidimAdmin || {}; window.DecidimAdmin.renderAutocompleteSelects = (nodeSelector: string) => { window.$(nodeSelector).each((index: number, node: HTMLElement) => { const props: AutocompleteProps = { ...window.$(node).data("autocomplete") }; ReactDOM.render( React.createElement(Autocomplete, props), node ); }); };
Version data entries
41 entries across 41 versions & 1 rubygems