Problem/Motivation

There's no handy way to mark some rows as disabled for selection in a tableselect element.

Proposed resolution

For tableselect elements with #multiple === TRUE, allow to pass an optional #disabled property in option.. When an option has #disabled === TRUE, the corresponding checkbox will be disabled. The new option doesn't have any effect for radio buttons (when #multiple === FALSE).

Remaining tasks

None.

User interface changes

None.

API changes

A tableselect element can have disabled options.

Data model changes

None.

Release notes snippet

CommentFileSizeAuthor
#2 3026624-2.patch3.98 KBclaudiu.cristea

Comments

claudiu.cristea created an issue. See original summary.

claudiu.cristea’s picture

Status: Active » Needs review
StatusFileSize
new3.98 KB

Patch.

claudiu.cristea’s picture

claudiu.cristea’s picture

claudiu.cristea’s picture

Status: Needs review » Closed (duplicate)
Parent issue: » #2895352: Allow tableselect element options to be disabled

Just found that this issue is a duplicate of #2895352: Allow tableselect element options to be disabled. Moving the work there as that one is older. Closing this as duplicate.