diff --git a/src/components/ListItemIcon/ListItemIcon.vue b/src/components/ListItemIcon/ListItemIcon.vue new file mode 100644 index 0000000000..69ac73cc5f --- /dev/null +++ b/src/components/ListItemIcon/ListItemIcon.vue @@ -0,0 +1,254 @@ + + +## This is used to display a avatar-title/subtitle + icon layout +It might be used for list rendering or within the multiselect for example + +> **Note:** Any binding will be forwarded on the Avatar component root + +```vue + + +``` +```vue + +``` + +### With icon +```vue + +``` + +### Searching +```vue + + + +``` + +### With actions +```vue + + + Edit + Delete + + +``` + + + + + + + diff --git a/src/components/ListItemIcon/index.js b/src/components/ListItemIcon/index.js new file mode 100644 index 0000000000..cd6fb144be --- /dev/null +++ b/src/components/ListItemIcon/index.js @@ -0,0 +1,25 @@ +/** + * @copyright Copyright (c) 2020 John Molakvoæ + * + * @author John Molakvoæ + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +import ListItemIcon from './ListItemIcon' + +export default ListItemIcon diff --git a/src/components/Multiselect/AvatarSelectOption.vue b/src/components/Multiselect/AvatarSelectOption.vue deleted file mode 100644 index a7ae014c2c..0000000000 --- a/src/components/Multiselect/AvatarSelectOption.vue +++ /dev/null @@ -1,205 +0,0 @@ - - -### User layout -By specifying `:user-select="true"`, you can benefit from a fully formatted layout. - -> **Note:** Any extra binding from the object will be added as attribute (`$attrs`) on the AvatarSelectOption root - -```vue - - - -``` - - - - - - - diff --git a/src/components/Multiselect/Multiselect.vue b/src/components/Multiselect/Multiselect.vue index 8140c725d1..c02c906860 100644 --- a/src/components/Multiselect/Multiselect.vue +++ b/src/components/Multiselect/Multiselect.vue @@ -101,7 +101,45 @@ export default { ``` ### User layout -Please see the [AvatarSelectOption](#AvatarSelectOption) component +By specifying `:user-select="true"`, you can benefit from a fully formatted layout. + +> **Note:** Any extra binding from the object will be added as attribute (`$attrs`) on the ListItemIcon component used here + +```vue + + + +```