mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-24 23:37:51 +01:00
style(DataTable): Migliorato stile select paginazione
This commit is contained in:
parent
159c17dfe8
commit
ae1bb32ffb
@ -1,6 +1,6 @@
|
|||||||
import '@material/mwc-linear-progress';
|
import '@material/mwc-linear-progress';
|
||||||
import '@material/mwc-list/mwc-list-item';
|
import '@material/mwc-list/mwc-list-item';
|
||||||
import '@material/mwc-select';
|
import '../../WebComponents/Select';
|
||||||
|
|
||||||
import {type Cash} from 'cash-dom/dist/cash';
|
import {type Cash} from 'cash-dom/dist/cash';
|
||||||
import {
|
import {
|
||||||
@ -40,7 +40,12 @@ export default class DataTable extends Component {
|
|||||||
{__('Righe per pagina')}
|
{__('Righe per pagina')}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<mwc-select className="mdc-data-table__pagination-rows-per-page-select">
|
<material-select
|
||||||
|
outlined
|
||||||
|
className="mdc-data-table__pagination-rows-per-page-select"
|
||||||
|
fixedMenuPosition
|
||||||
|
style="--mdc-select-width: 112px; --mdc-select-height: 36px; --mdc-menu-item-height: 36px;"
|
||||||
|
>
|
||||||
{this.attrs.get('rows-per-page', '10,25,50,75,100').split(',').map(
|
{this.attrs.get('rows-per-page', '10,25,50,75,100').split(',').map(
|
||||||
(value) => {
|
(value) => {
|
||||||
const rowsPerPage = Number.parseInt(value, 10);
|
const rowsPerPage = Number.parseInt(value, 10);
|
||||||
@ -51,7 +56,7 @@ export default class DataTable extends Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
</mwc-select>
|
</material-select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mdc-data-table__pagination-navigation">
|
<div className="mdc-data-table__pagination-navigation">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user