score:3
Accepted answer
thanks everyone for your attention. it was so easy, but didn't find before. i added an option in material-table markup as
options={{
search: true,
actionscolumnindex: -1,
toolbarbuttonalignment:"left" // here is the option to change toolbar buttons' alignment
}}
score:1
you can have this by overriding the toolbar component instead of using the actions
property. below is an example code of the components
property that you need on your <materialtable />
, you can change the styles and components according to what you need:
components={{
toolbar: (toolbarprops) => (
<box display="flex" alignitems="center">
<button
style={{ marginleft: '8px', marginright: 'auto' }}
variant="contained"
color="secondary"
>
refresh
</button>
<mtabletoolbar {...toolbarprops} />
</box>
),
}}
Source: stackoverflow.com
Related Query
- How to change the position of a free action icon in react material-table
- how to change material table action fields icon
- How to position columns at the left and data at the right of material UI table for React
- How do you change the Stepper color on React Material UI?
- How to change the text color of the selected row in material ui table
- How to change name and Icon of Action Column in Material-Table React
- How to add floating action button on the right-bottom side of the screen using material ui in react
- How to change the position of an Icon component, within a Tab component?
- How to change the style of sorting icon in Material UI table?
- How to change the selected table row background color with React
- How to change the selected table row background using Material-UI on React
- How can I change the icon in material-ui date picker for React
- How to change default sorting icon on table header column on React Material-Table?
- How to change icon size on Alert in Material UI for React
- How do I change the position of dropdown icon (arrow) in material-ui select?
- How can I change font size of pagination part in material table using react js?
- How do I re render the entire React Pivot Table UI component when I change the selection in select tag?
- How to change the color of the placeholder in material UI React js
- React - How can I access a particular position in the array, and then change it?
- How to change icon position of semantic-ui react Accordion?
- How to change the filtered date format in material table react?
- How to hide a column on REACT Material table in all rows and show it on Edit for the Particular Row I am editing and Add Operations on new row adding?
- How to change the color of the calendar icon of the TextField date-picker? In Material-UI React
- How to align icon in material Grid item to the right always even screen change
- How to put the icon inside the React Material Ui text field?
- How to change the font color of Material UI table with makeStyles?
- How can I change the value of an object in an array in react redux when the action is called?
- React - Ant Design change default filter icon in table to material icon
- How to change the table row color based on 3 conditions in React
- How to dispatch an action to change the inner state in a react component
More Query from same tag
- antd checkbox inside a button
- React function doesn't update state
- React - Difference between two statements with reduxForm
- refetch different query from retry of another query in React Query
- Why is this variable both empty and not empty according to the class state's logic?
- React - list element text not getting displayed
- How to use Abort Controller to abort APIs initiated from inside useEffect but triggered by user action?
- Async/Await no longer works within my dispatched function
- What exactly is makeStyles in material-ui?
- Apollo Client version 3 cache update delay
- setState not updating when set to boolean
- setState also changes screen props
- How to semantically mark up multilevel checkbox and radio groups?
- React Enzyme - Testing for a Value of a Specific Prop
- React > expo > Axio > Async do not wait for response
- How to do Client side routing using react router 1.0.x in a click handler?
- Documenting Javascript/React
- Getting mixed content error while making this request (even though it is https)
- How to capture Google recaptchaV3 Promise Timeout?
- How to hide some component based on some flag in react js
- React - Typescript - How to function as prop to another component
- How to export Axios.create in Typescript
- React - Loop through multiple nested arrays json object response then update State
- Run through an array and split values
- Indented comment on React code for .md file
- How to handle null values on first render?
- How to pass props to children components in React
- How to add space between all children of div
- Promise data when using react and axios
- How to pass state/props when redirecting to another route in React?