react-icons/fa#FaSortAmountUp JavaScript Examples
The following examples show how to use
react-icons/fa#FaSortAmountUp.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OrderButton.js From dm2 with Apache License 2.0 | 5 votes |
OrderButton = injector(({ size, ordering, view, ...rest }) => {
return (
<Space style={{ fontSize: 12 }}>
Order
<Button.Group collapsed {...rest} >
<FieldsButton
size={size}
style={{ minWidth: 67, textAlign: "left", marginRight: -1 }}
title={ordering ? ordering.column?.title : "not set"}
onClick={(col) => view.setOrdering(col.id)}
onReset={() => view.setOrdering(null)}
resetTitle="Default"
selected={ordering?.field}
wrapper={({ column, children }) => (
<Space style={{ width: "100%", justifyContent: "space-between" }}>
{children}
<div
style={{
width: 24,
height: 24,
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
{column?.icon}
</div>
</Space>
)}
/>
<Button
size={size}
style={{ color: "#595959" }}
disabled={!!ordering === false}
icon={ordering?.desc ? <FaSortAmountUp/> : <FaSortAmountDown/>}
onClick={() => view.setOrdering(ordering?.field)}
/>
</Button.Group>
</Space>
);
})