Does React Semantic UI Search Support Multiselection? - semantic-ui-react

I notice that for dropdown it allows for multiple selection:
https://react.semantic-ui.com/modules/dropdown
However, I notice that this isn't the same with search.
https://react.semantic-ui.com/modules/search
Is it possible to get the same functionality where every time you press enter or select an item in the search drop down that it appears as a object within the search bar. This would make the usage of the drop down and the search bar consistent?
Or is there a way to achieve this?
Thanks,
Derek

The Semantic-ui-react Dropdown component supports a search property. My suggestion would be to use the Dropdown component instead of the search component if you would like to allow for multiple selections.
Dropdown Component
<Dropdown selection multiple search { ...otherProps } />

Related

Popup LOV item settings

Is it possible to disable Popup LOV item search bar and load by default all rows from SQL Query? Item has an JavaScript Initialization Code block, but I can find documentation how use it (for example like Rich Text Editor or Charts). For now I disabled Popup LOV search bar using CSS, but maybe there is another way?
There is no way to disable the search bar declaratively.
The CSS way is indeed your best bet.
Concerning the JavaScript Initialization Code attribute, the first thing I always do before putting anything in there is the following:
function(options){
console.log(options);
return options;
}
then checking the console. Usually you will see all of the declarative values and defaults for any other fancy things.
Your second option would be to check the actual source code, which usually includes some JSDoc. In the case of the Popup LOV, you want to look at this file. Of course the easiest way to get to these things is to put your app in debug mode, and navigate through the files in the Sources Panel.

Identify all templates in sitecore

I am trying to get a list of all the sitecore templates and/or possibly all the content pages, modules. Wondering if there a quick way in Sitecore to identify all the templates that have been defined? need this just for the numbers
You can search a folder and apply filters to narrow the items that the search returns which will give you a count of the items that match the filters that you've defined.
From the Content Editor:
Select the Templates folder: /sitecore/templates
Select the Search tab in the right pane
Click on the "More Search Options" arrow on the left side of the search box
Click Search Filters
Click Search by template
A filter box will show up in the search box. Start typing to get an autocomplete list. Select the template you would like to filter by.
The search will now filter the results by the template that you selected.
Multiple filters can be applied to a search. Apply the necessary filters to get the counts that you require.

Experience Editor custom functionality

In some of our pages, we have a component that is a list of links. In Sitecore, this is stored in the following manner -
- Component data source
- list item 1
- list item 2
- list item 3
Right now the Sitecore users can only add links to the list by going into the Content Editor and manually adding a list item. This is not very convenient for users as they have to constantly switch between Content and Experience Editor.
I would like to provide a functionality in the Experience Editor itself which can allow users to add these link items using a layover type functionality.
I did a quick search and wasn't able to find anything concrete. Is there a way to update achieve this functionality?
You should create a custom WebEdit button which will allow to add children to your datasource.
You can read more about it here Sitecore Page Editor: Creating a WebEdit button

Multi-language control with combobox

I'm trying to control language by selecting it in combobox, but I can't even write to the combo any selection as simple text.
Here is sourcecode: multilang
It is that what I'm looking for: Link
You can set the language automatically to the systemlanguage, due to creating a folder en-US (or every language tag you want) with a Resources.resw (Don't change it) in it.
To add Items to a ComboBox, open the "Collection" of the Items propperty of your ComboBox, select (at the bottom in the DropDown, next to "Add") "Other type..." and search for "String". Now you can add as many as you want, and edit their text on the right side.

How do you get a list picker like the kind shown in the alarm clock?

How do you create the big, scrolling list picker, like the kind that is created for datePicker and timePicker which is used on the WP7 default alarm clock? The remaining list pickers don't have quite the same effect. I would be using the list pickers only to choose integer values.
Thanks
The DatePicker and TimePicker are controls that are provided by the Silverlight Toolkit for WP7. What they actually do is present the selection in one control in your page, then navigate to a separate page that allows you to actually select a new date/time. In these separate pages they use a collection of LoopingSelector controls (one per item) that enable the user to select the parts of the date/time.
If you want to display a similar picker but for numeric values, then you need to implement the same infrstructure but using a single LoopingSelector and you need to provide the correct data source (that implements the ILoopingSelectorDataSource interface) that specifies the values for your control.
There is a great series of 3 posts on the LoopingSelector on WindowsPhoneGeek.com