What function render select tag in sidebar , in gutenberg editor ?
-
Hello everyone ) I work with this ticket – https://core.trac.wordpress.org/ticket/52415 , but I still can not find function that takes data from wordpress and render it select tags in editor sidebar. I find only this chunk of script :
///from wordpress-svn\src\wp-includes\js\dist\components.js return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("ul", { ref: this.bindList, className: "components-form-token-field__suggestions-list", id: "components-form-token-suggestions-".concat(this.props.instanceId), role: "listbox" }, Object(lodash__WEBPACK_IMPORTED_MODULE_7__["map"])(this.props.suggestions, function (suggestion, index) { var match = _this5.computeSuggestionMatch(suggestion); console.log(suggestion, index); var classeName = classnames__WEBPACK_IMPORTED_MODULE_9___default()('components-form-token-field__suggestion', { 'is-selected': index === _this5.props.selectedIndex }); /* eslint-disable jsx-a11y/click-events-have-key-events */ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("li", { id: "components-form-token-suggestions-".concat(_this5.props.instanceId, "-").concat(index), role: "option", className: classeName, key: _this5.props.displayTransform(suggestion), onMouseDown: _this5.handleMouseDown, onClick: _this5.handleClick(suggestion), onMouseEnter: _this5.handleHover(suggestion), "aria-selected": index === _this5.props.selectedIndex }, match ? Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("span", { "aria-label": _this5.props.displayTransform(suggestion) }, match.suggestionBeforeMatch, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__["createElement"])("strong", { className: "components-form-token-field__suggestion-match" }, match.suggestionMatch), match.suggestionAfterMatch) : _this5.props.displayTransform(suggestion)); /* eslint-enable jsx-a11y/click-events-have-key-events */ }));
Can anyone help me ? In what direction I must go ?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘What function render select tag in sidebar , in gutenberg editor ?’ is closed to new replies.