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 dropdowns-dividers for row acrions. #18377

Closed
maliming opened this issue Dec 6, 2023 · 1 comment · Fixed by #18388
Closed

Support dropdowns-dividers for row acrions. #18377

maliming opened this issue Dec 6, 2023 · 1 comment · Fixed by #18388
Assignees
Labels
Milestone

Comments

@maliming
Copy link
Member

maliming commented Dec 6, 2023

https://support.abp.io/QA/Questions/6207/DataTables-RowActions-button-divider#answer-3a0f4ef8-32a2-353e-9810-1c0e8ea3cc9a
https://getbootstrap.com/docs/5.0/components/dropdowns/#dividers

{
    text: l('Edit'),
    visible: abp.auth.isGranted(
        'AbpIdentity.Users.Update'
    ),
    action: function (data) {
        _editModal.open({
            id: data.record.id,
        });
    },
},
{
    divider: true,
    dividerHtml: function () {
        //Optional
    },
},
{
    text: l('Permissions'),
    visible: abp.auth.isGranted(
        'AbpIdentity.Users.ManagePermissions'
    ),
    action: function (data) {
        _permissionsModal.open({
            providerName: 'U',
            providerKey: data.record.id,
            providerKeyDisplayName: data.record.userName
        });
    },
}
@maliming maliming self-assigned this Dec 6, 2023
@maliming maliming added this to the 8.1-preview milestone Dec 6, 2023
@maliming maliming added the ui-mvc label Dec 6, 2023
@maliming
Copy link
Member Author

maliming commented Dec 6, 2023

Temporary solution:

{
    displayNameHtml: true,
    text: function (data) {
        return '<li><hr class="dropdown-divider"></li>';
    }
}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant