UNPKG

gd-sprest-bs

Version:

SharePoint JavaScript, TypeScript and Web Components designed using the Bootstrap framework.

20 lines (19 loc) 750 B
import { Components } from "../components/core"; import { _MultiDropdown } from "./multiDropdown"; /** * Multi-Dropdown Checkbox */ class _MultiDropdownCheckbox extends _MultiDropdown { // Override the rendering method to customize the type onRendering(props) { // Set the type and placement props.placeholder = this.config.placeholder; props.placement = this.config.placement || Components.DropdownPlacements.Left; props.type = Components.FormControlTypes.MultiDropdownCheckbox; // Return the props return props; } } export const MultiDropdownCheckbox = (targetProperty, config, context) => { return new _MultiDropdownCheckbox(targetProperty, config, context); };