How to use the select.placeholder function in select

To help you get started, we’ve selected a few select examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github micromata / projectforge / projectforge-webapp / src / components / design / ReactSelect.jsx View on Github external
return (
        
            <span>{label}</span>
            {tooltipElement}
             (option[valueProperty])}
                getOptionLabel={getOptionLabel || getOptionLabelDefault}
                loadOptions={loadOptions}
                defaultOptions={defaultOptions}
                id={id}
                isMulti={multi}
                placeholder={translations['select.placeholder'] || ''}
                cache={{}}
                value={value || null}
                {...props}
            /&gt;
            
        
    );
}
github micromata / projectforge / projectforge-webapp / src / containers / page / calendar / CalendarPage.jsx View on Github external
<form>
                                
                                    
                                        <select> (option.title)}
                                            getOptionValue={option =&gt; (option.id)}
                                            isClearable
                                            isMulti
                                            onChange={this.onChange}
                                            options={options}
                                            placeholder={translations['select.placeholder']}
                                            setMultiValue={this.handleMultiValueChange}
                                            styles={customStyles}
                                            values={colors}
                                            value={activeCalendars.map(option =&gt; ({
                                                ...option,
                                                filterType: 'COLOR_PICKER',
                                                label: option.title,
                                            }))}
                                            // loadOptions={loadOptions}
                                            // defaultOptions={defaultOptions}
                                        /&gt;
                                    
                                    
                                        </select></form>
github micromata / projectforge / projectforge-webapp / src / containers / page / list / SearchFilter.jsx View on Github external
label: option.label,
        }));
        const entries = filter.entries || [];

        return (
             option.key}
                onChange={handleSearchFilterChange}
                placeholder={ui.translations['select.placeholder']}
                setMultiValue={handleSearchFilterValueChange}
                value={entries.map(entry =&gt; ({
                    ...entry,
                    key: entry.field || entry.value.value,
                    label: entry.field || entry.value.value,
                    ...Array.findByField(options, 'id', entry.field),
                }))}
                values={entries.reduce((accumulator, currentValue) =&gt; ({
                    ...accumulator,
                    [currentValue.field || currentValue.value.value]: currentValue.value,
                }), {})}
            /&gt;
        );
    }, [ui.namedContainers, ui.translations, filter.entries]);
github micromata / projectforge / projectforge-webapp / src / components / base / dynamicLayout / components / select / task / index.jsx View on Github external
return (
            <div>
                {task &amp;&amp; task.path
                    ? (
                         {
                                openModal(taskId);
                                setTask(taskId);
                            }}
                        /&gt;
                    )
                    : (
                        <span>
                            {label || ui.translations['select.placeholder']}
                        </span>
                    )}
                <button color="link">
                    
                </button>
                </div>

select

Programmatically select the text of a HTML element

MIT
Latest version published 8 years ago

Package Health Score

65 / 100
Full package analysis