Is there way to programmatically change visibility of Kanban card?

I would like to logic control the field views of the Kanban “customize cards” vs clicking through the command drop down. Does the “cusomize cards” have a state table that I can access? Similar question for other controls, such as Filter & Sort. Thanks, Paul.