All Downloads are FREE. Search and download functionalities are using the official Maven repository.

components.widgets.Tree.container.allProps.js Maven / Gradle / Ivy

The newest version!
import PropTypes from 'prop-types'

export const defaultProps = {
    disabled: false,
    loading: false,
    datasource: [],
    parentIcon: '',
    childIcon: '',
    multiselect: false,
    showLine: false,
    filter: '',
    expandBtn: false,
    bulkData: false,
    parentFieldId: 'parentId',
    valueFieldId: 'id',
    labelFieldId: 'label',
    iconFieldId: 'icon',
    badgeFieldId: 'badge',
    badgeColorFieldId: 'color',
    hasCheckboxes: false,
    prefixCls: 'n2o-rc-tree',
    icon: '',
    childrenFieldId: 'children',
}

export const propTypes = {
    disabled: PropTypes.bool,
    loading: PropTypes.bool,
    datasource: PropTypes.array,
    parentIcon: PropTypes.string,
    childIcon: PropTypes.string,
    multiple: PropTypes.bool,
    showLine: PropTypes.bool,
    filter: PropTypes.string,
    expandBtn: PropTypes.bool,
    bulkData: PropTypes.bool,
    parentFieldId: PropTypes.string,
    valueFieldId: PropTypes.string,
    labelFieldId: PropTypes.string,
    iconFieldId: PropTypes.string,
    imageFieldId: PropTypes.string,
    badgeFieldId: PropTypes.string,
    badgeColorFieldId: PropTypes.string,
    hasCheckboxes: PropTypes.bool,
    prefixCls: PropTypes.string,
    icon: PropTypes.string,
    selectable: PropTypes.bool,
    childrenFieldId: PropTypes.string,
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy