
Product
Unify Your Security Stack with Socket Basics
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
@promaster-sdk/react-property-selectors
Advanced tools
User interface for selecting single property values
A common task in product selection tools is to have an UI that allows the user to make a valid property value selection. This package contains a react components for showing different UI for selection of a single property, such as a dropdown, textbox etc.
npm install --save @promaster-sdk/react-property-selectors
The library is compiled to ES5 and no polyfills are required.
<ComboboxPropertySelector
propertyName="..."
valueItems={...}
propertyValueSet={...}
locked={false}
showCodes={true}
sortValidFirst={true}
onValueChange={pv => console.log("onValueChange")}
filterPrettyPrint={filterPrettyPrint}
readOnly={false}
/>
<TextboxPropertySelector
propertyName="..."
propertyValueSet={...}
onValueChange={pv => console.log("onValueChange")}
readOnly={false}
debounceTime={600}
/>
<CheckboxPropertySelector
propertyName="..."
valueItems={...}
propertyValueSet={...}
locked={false}
showCodes={true}
onValueChange={pv => console.log("onValueChange")}
filterPrettyPrint={() => ""}
readOnly={false}
/>
<AmountPropertySelector
fieldName="..."
propertyName="..."
propertyValueSet={...}
inputUnit={...}
inputDecimalCount={...}
onValueChange={pv => console.log("onValueChange)}
filterPrettyPrint={...}
validationFilter={...}
readOnly={false}
isRequiredMessage="Is required"
notNumericMessage="Not numeric"
onFormatChanged={(selectedUnit, selectedDecimalCount) => console.log("onFormatChanged")}
onFormatCleared={() => console.log("onFormatCleared")}
unitsFormat={UnitsFormat}
units={Units}
/>
<AmountInputBox
value={...}
inputUnit={...}
inputDecimalCount={...}
onValueChange={amount => console.log("changed")}
readOnly={false}
errorMessage=""
isRequiredMessage="Is required"
notNumericMessage="Not numeric"
debounceTime={350}
/>
<AmountFormatSelector
selectedUnit={...}
selectedDecimalCount={...}
onFormatChanged={(
selectedUnit: Unit.Unit<any>,
selectedDecimalCount: number
) => console.log(selectedUnit, selectedDecimalCount))}
onFormatCleared={() => console.log("onFormatCleared")}
onFormatSelectorActiveChanged={console.log("Toggle format selector")}
unitsFormat={...}
units={...}
/>
FAQs
Hooks for building UI for selection of property values
The npm package @promaster-sdk/react-property-selectors receives a total of 268 weekly downloads. As such, @promaster-sdk/react-property-selectors popularity was classified as not popular.
We found that @promaster-sdk/react-property-selectors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.
Research
/Security News
The Socket Threat Research Team uncovered a coordinated campaign that floods the Chrome Web Store with 131 rebranded clones of a WhatsApp Web automation extension to spam Brazilian users.