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

Added ability to select custom class on action links #329

Merged
merged 4 commits into from Dec 21, 2018

Conversation

VolodiaKhl
Copy link
Contributor

Added ability to select custom class on action links. It is very helpful if, for example, translations are used

  • New feature (non-breaking change which adds functionality)

@coveralls
Copy link

coveralls commented Dec 19, 2018

Coverage Status

Coverage decreased (-0.05%) to 73.512% when pulling 689664a on feature/ability-to-change-class-action-links into 7db345e on develop.

@@ -318,7 +318,7 @@ appear on the last column of the table and can apply a certain action, such
as delete.
In case if some custom attributes required, they can be specified as last argument in form of dict. In this case
optional icon class can be provided as part of that argument dict
`('name', 'base_url', 'optional icon class', {'icon_class': 'fa', 'attributes': {'custom_attr_name': 'custom_attr_value'}})`
`('name', 'base_url', 'optional icon class', {'icon_class': 'fa', 'action_class': 'name', 'attributes': {'custom_attr_name': 'custom_attr_value'}})`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is already an icon_class, why do we need an action_class? I don't see the icon_class in the code however...

arctic/mixins.py Outdated Show resolved Hide resolved
@mmarcos mmarcos merged commit a95ab35 into develop Dec 21, 2018
@mmarcos mmarcos deleted the feature/ability-to-change-class-action-links branch February 25, 2019 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants