parent
7745963b25
commit
d37848f186
5 changed files with 50 additions and 61 deletions
@ -0,0 +1,31 @@ |
||||
import React from "react"; |
||||
|
||||
const ShowMoreRows = ({ pageSize, setPageSize }) => { |
||||
return ( |
||||
<select |
||||
className="text-white text-sm rounded cursor-pointer mr-2" |
||||
style={{ |
||||
backgroundColor: "#65A9FF", |
||||
borderColor: "#65A9FF", |
||||
}} |
||||
value={pageSize} |
||||
onChange={(e) => setPageSize(Number(e.target.value))} |
||||
> |
||||
{[7, 10, 25, 50].map((pageSize) => ( |
||||
<option |
||||
key={pageSize} |
||||
value={pageSize} |
||||
className=" text-xs" |
||||
style={{ |
||||
direction: "ltr", |
||||
textAlign: "right", |
||||
}} |
||||
> |
||||
نمایش {pageSize} |
||||
</option> |
||||
))} |
||||
</select> |
||||
); |
||||
}; |
||||
|
||||
export default ShowMoreRows; |
Loading…
Reference in new issue