TA貢獻1735條經驗 獲得超5個贊
您可能正在尋找的是這樣的:
BooleanField::new('isPaid')->setFormTypeOption('disabled','disabled');
TA貢獻1839條經驗 獲得超15個贊
實際上我所需要和想要的就是這個:
public function configureFields(string $pageName): iterable
{
...
$isPaid = BooleanField::new('isPaid')->renderAsSwitch(false)->hideOnForm();
}
舉報
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號