React DropDownBox - fieldAddons
Specifies DropDownBox input field addons.
Field addons are custom markup containers that you can add to either side of the DropDownBox input field. The component arranges visual elements in the following order: beforeTemplate, DropDownBox input, afterTemplate.
- import { DropDownBox, FieldAddons } from 'devextreme-react/drop-down-box';
- function beforeDropDownBoxRender(data) {
- return (
- <i class="dx-icon-chevronprev"></i>
- );
- }
- function afterDropDownBoxRender(data) {
- return (
- <i class="dx-icon-chevronnext"></i>
- );
- }
- function App() {
- return (
- <DropDownBox ... >
- <FieldAddons
- beforeRender={beforeDropDownBoxRender}
- afterRender={afterDropDownBoxRender}
- />
- </DropDownBox>
- );
- }
afterComponent
An alias for the afterTemplate property specified in React. Accepts a custom component. Refer to Using a Custom Component for more information.
afterRender
An alias for the afterTemplate property specified in React. Accepts a rendering function. Refer to Using a Rendering Function for more information.
beforeComponent
An alias for the beforeTemplate property specified in React. Accepts a custom component. Refer to Using a Custom Component for more information.
beforeRender
An alias for the beforeTemplate property specified in React. Accepts a rendering function. Refer to Using a Rendering Function for more information.