I'm trying to create a gallery plugin with a component option to select which gallery or galleries to display. How do I make the dropdown to be multiple selected options, not just one.
Ex:
<select multiple>
...
</select>
Gallery component:
public function defineProperties() {
return [
'gallery' => [
'title' => 'Galleries',
'description' => 'Select which gallery to display',
'type' => 'dropdown'
]
];
}
public function getGalleryOptions(){
return Galleries::select('id', 'name')->orderBy('name')->get()->lists('name', 'id');
}
Any help would be much appreciated.