Element: [Feature Request] Want an attribute to setup whether to show Radio/Checkbox‘s label text

Created on 17 May 2017  ·  6Comments  ·  Source: ElemeFE/element

Existing Component

Yes

Component Name

Radio/Checkbox

Description

Can't use Radio/Checkbox component without label text, it's always setting by :label attribute when you don't need slot content, i think this is a useful feature, what do you think?

BTW, thx for your work, ElementUI awesome!

Most helpful comment

Okay, but i think :value/:label should be set separately.

Anyway, thx for your reply. 🙂

All 6 comments

You mean when they are nested inside RadioGroup / CheckboxGroup?

@Leopoldthecoder Yup, i need a radio column without label text. Is there another way, but i don't know?
wx20170518-143530

In this case, you don't have to wrap Radios in RadioGroup since there is only one Radio for each row. See the first demo in our docs.

@Leopoldthecoder I'm not using a RadioGroup, it is a single radio in each row, and also i cant't find any Radio demo without label text, i read your source code then find that you always setting label text&value by label attribute, is there an mistake?

wx20170519-114323

My mistake. It seems you have to hide the labels using CSS display: none.

Okay, but i think :value/:label should be set separately.

Anyway, thx for your reply. 🙂

Was this page helpful?
0 / 5 - 0 ratings