How to use material-ui(-next) Select with async options - material-ui

I thought async options is very common use case for Select component, yet i haven't seen an example how it can be done with material-ui(-next) Select.
I'm not sure whether I should just add another dependency to "react-select" for its async options feature. But I would avoid this if it can be done just with material-ui Select
Please help.

You can use the autocomplete component in material-ui:
https://material-ui.com/components/autocomplete/#asynchronous-requests

Related

Change tt_content's TCA for a subtype?

Is it possible, for a specific plugin (e.g. newspage_pi1), to configure its TCA, i.e. its back-end form display? Just for that specific plugin, because when changing tt_content's TCA for the list type (i.e. plugins) like this:
$GLOBALS['TCA']['tt_content']['types']["list"] = [
'showitem' => "
(tabs..palettes..columns..etc...)"];
It changes it for all plugins, and I only want to change it for the newspage_pi1 list_type.
Yes, I know that I can use 'subtype_value_field' => 'list_type' and then subtypes_excludelist and subtypes_addlist to add or remove fields for specific plugins. But this is not nearly as powerful as setting showitem directly, since it allows to define new tabs, palettes, position the fields how you want to, etc.
I also know about FlexForms, but these only control the Plugin Options field, not all the other ones.
Is there a way to change the showitem for a specific plugin?
Thanks a lot in advance!
Frankly said, what you actually want is not a subtype but another type, since it needs to change fields other than the usual plugin / pi_flexform configurations.
So instead of adding that subtype as a plugin you should add it as another CType to get the full power of showitem.
Basically, this is how we add any kind of plugin too, since it makes more sense to have real database fields at hand instead of faking them with XML data structures.
As mentioned in the description here https://api.typo3.org/master/class_t_y_p_o3_1_1_c_m_s_1_1_core_1_1_utility_1_1_extension_management_utility.html#ab4f6c66990aca246eac5390a76f0c83c
... - or more generally use this function to add an entry to any
selectorbox/radio-button set in the FormEngine

Custom content assist for default java editor in Eclipse

I'm currently trying to develop an Eclipse Plugin to support code replacement, like what the default content assist in Eclipse do. What I want to implement is something like "insert argument names automatically on method completion with visualized box around the argument" and I can "use the Tab key to navigate between the inserted names" and "while navigating, list of optional variables for current argument can be displayed and be chosen".
In short, it comes to two questions:
How to add the visualized box around the already existed variable or even Java keywords that need replacement? And at the meanwhile I can use Tab key to switch between these boxes.
How to display a list of candidates to select from when I trigger on the box?
By now I only figure out the extension point : org.eclipse.jdt.ui.javaCompletionProposalComputer may be useful, but I have no idea where to start at? Thanks in advance.
Oh, finally I've solved it myself...
For the 'box', it should be the LinkedModeModel, this class should work with LinkedPositionGroup and LinkedPosition to add mutiple boxes. And we should use LinkedModeUI to set it up.
For the content assistant, there's no need to use the extension point. There is a ProposalPosition class which extends LinkedPosition for you to add your proposals for the 'box' in its constructor. And we can simply use the CompletionProposal to construct a ICompletionProposal array as the argument of ProposalPosition's constructor.

org.eclipse.ui.dialogs.ListSelectionDialog input options?

i try to display a dialog for selection the fields of a source.
i like to use the ListSelectionDialog, but i'm not sure what to use for the input parameter.
all the examples in the web uses the
ResourcesPlugin.getWorkspace().getRoot()
as input and yeah, all the projects are displayed.
but i have a list of Fields (IField[]) that i want to show for selection.
the constructor of ListSelectionDialog accept the parameter, but the dialog shows nothing... :(
does anybody has an idea?
thanks a lot!
Sven
I don't think using BaseWorkbenchContentProvider is right. Try ArrayContentProvider.
So something like:
new ListSelectionDialog(shell, fields, new ArrayContentProvider(), labelProvider, msg);

Event listener on select field in Symfony 1.4

I got two select fields in my symfony project: ContrySelect and StateSelect. They are implemented with the sfDependentSelectPlugin. I just want to know if does it exist a way to listen to the events of the CountrySelect so I can set or unset the StateSelect field.
Thanks in advance.
I only worked once with this plugin.
It has an option for the sfWidgetFormDependentSelect which is called 'ajax'.
See doc:
ajax = false: Specifies whether remote calls are used to populate the
select values,
This may be an option.
Otherwise I would advise you to just create a custom javascript listener on your CountrySelect that will set the other widget.

How do I disable a column using icefaces?

I want to disable a column, I use this code:
<ice-cc:selectBooleanColumn title="Installed" property="installed" disabled="true" ></ice-cc:selectBooleanColumn>
...but the column is still able to change.
Please help :)
By "disabled" you mean it shouldn't appear? Try rendered="false" maybe if this is the case.
There is no disabled attribute in selectBooleanColumn component, as said in API docs. I fear this cannot be done using ice-cc:editableTable.