Web: Components: ViewSelector - added description

This commit is contained in:
DmitrySychugov 2023-04-21 16:25:48 +05:00
parent 1be76494db
commit bd7cd63901

View File

@ -107,14 +107,16 @@ const ViewSelector = ({
};
ViewSelector.propTypes = {
/* Disables the button default functionality */
/** Disables the button default functionality */
isDisabled: PropTypes.bool,
/* Sets a callback function that is triggered when the button is clicked */
/** Sets a callback function that is triggered when the button is clicked */
onChangeView: PropTypes.func,
/* Object that contains the view settings */
/** Array that contains the view settings */
viewSettings: PropTypes.arrayOf(PropTypes.object).isRequired,
/* Current application view */
/** Current application view */
viewAs: PropTypes.string.isRequired,
/** Displays only available selector options */
isFilter: PropTypes.bool,
};
export default ViewSelector;