第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

MUIdatatables 如何使用箭頭/tab 鍵導(dǎo)航?

MUIdatatables 如何使用箭頭/tab 鍵導(dǎo)航?

忽然笑 2022-07-15 10:26:30
我想使用 tabkey 導(dǎo)航來導(dǎo)航 MUIdatatable 行。請建議我任何合適的方法。我已經(jīng)嘗試過基本的 taIndex,啟用 Focus 等東西,但它們似乎在這里無法正常工作。import React from "react";import ReactDOM from "react-dom";import MUIDataTable from "mui-datatables";class App extends React.Component {  render() {    const columns = ["Name", "Title", "Location", "Age", "Salary"];    const data = [      ["Gabby George", "Business Analyst", "Minneapolis", 30, "$100,000"],      ["Aiden Lloyd", "Business Consultant", "Dallas", 55, "$200,000"],      ["Jaden Collins", "Attorney", "Santa Ana", 27, "$500,000"],    ];    const options = {      filterType: "dropdown",      responsive: "scroll"    };    return (      <MUIDataTable        title={"ACME Employee list"}        data={data}        columns={columns}        options={options}        enableFocusedCell="true"      />    );  }}ReactDOM.render(<App />, document.getElementById("root"));
查看完整描述

1 回答

?
料青山看我應(yīng)如是

TA貢獻1772條經(jīng)驗 獲得超8個贊

MUI 數(shù)據(jù)表已經(jīng)支持鍵盤導(dǎo)航(例如使用Tab鍵)


通過使用 tabkey navigation 導(dǎo)航 MUIdatatable 行,我認為您想要做的可能是將指針指向第一行?為此,您可以嘗試將指針設(shè)置為在安裝時關(guān)注第一行:


componentDidMount() {

  // Start with the first row

  document.getElementById("MUIDataTableSelectCell-0").focus();

}


查看完整回答
反對 回復(fù) 2022-07-15
  • 1 回答
  • 0 關(guān)注
  • 107 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號