Is there an API to disable New button on table view?

Is there an API to disable New button on table view?

loukinglouking Posts: 185Questions: 35Answers: 0

I have a table view which is always filtered by an "interest" controlled by a select widget outside of the table. In this particular table, the user should only be allowed to configure one row per interest, so the table display should show zero or one rows depending on whether this has been configured for the particular interest.

Because of this, I'd like the New button to be sensitized or desensitized depending on whether zero or one rows are displayed respectively.

I see there is a class, ui-state-disabled, that I might be able to use to control this. But I was wondering if there is an API I should be using to control the sensitization.

(for my reference: https://github.com/louking/runningroutes/issues/90)

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.