addButtonRowCommand: icon optional?

addButtonRowCommand: icon optional?

ChelseaK_D3
Enthusiast Enthusiast
329 Views
1 Reply
Message 1 of 2

addButtonRowCommand: icon optional?

ChelseaK_D3
Enthusiast
Enthusiast

Trying to add a Button Row into my design and the documentation says that for ListItems that the icon argument is optional? Is this not true for the Button Row?

 

Here is what I have and then it errors out saying invalid argument icon:

 

            ButtonRow = inputs.addButtonRowCommandInput('butrow', 'Button Row:', False )
            ButtonRow.listItems.add('Option1', False)
            ButtonRow.listItems.add('Option2', False)

Thanks!

330 Views
1 Reply
Reply (1)
Message 2 of 2

marshaltu
Autodesk
Autodesk

Hello,

 

For ButtonRowCommandInput, icons do be needed to show buttons(icon attached) in a row. Unfortunately the object "ListItems" are shared by multiple command inputs. So the description isn't correct for ButtonRowCommandInput. We will correct it in future updates.

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>