Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple widgets in single table cell #95

Open
abalakh opened this issue May 16, 2018 · 0 comments
Open

Support multiple widgets in single table cell #95

abalakh opened this issue May 16, 2018 · 0 comments
Labels

Comments

@abalakh
Copy link

abalakh commented May 16, 2018

In some cases we have multiple widgets in single table cell - e.g. 2 buttons in 'Actions' column, but currently Table widget supports only 1 widget per column.
We can try to workaround that by moving those widgets into separate view and assigning that view to table cell, but that will create some boilerplate (not to mention no one tried it out so no guarantees it will actually work :) ).
Ideally i just want to be able to specify some dict with widgets per table column, e.g:

resources = SatTable(
    locator='//table',
    column_widgets={
        'Version': Text('.//a'),
        'Status': PublishPromoteProgressBar(),
        'Actions': {'clone': Button(id='clone'), 'delete': Button(id='delete')}
    },
)
@mshriver mshriver added the bug label Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants