Skip to content

Conversation

mgralikowski
Copy link
Contributor

A simple update to allow set custom HTML title instead auto-generated from "title".

Usage:
Column::computed('image')->title('')->htmlTitle('User image thumb');

Add new custom attribute.
Override HTML title if it exists.
@mgralikowski
Copy link
Contributor Author

mgralikowski commented Apr 13, 2020

A good use case is to use a title to reorder column plugin .

Button::make('colvis')
->text('Columns')
->columnText("function (dt, idx) { return $(dt.column(idx).header()).prop('title'); }")

@mgralikowski
Copy link
Contributor Author

Instead html-title we can use titleAttr like datatables do. What do You think?

@yajra
Copy link
Owner

yajra commented Apr 14, 2020

Can you please link some ref where titleAttr is being used? The PR looks good though.

@mgralikowski
Copy link
Contributor Author

@yajra
Copy link
Owner

yajra commented Apr 14, 2020

I see, I think titleAttr would be a good one to use for consistency with the js library. Thanks!

Change a naming convention.
Change a naming convention.
Copy link
Contributor Author

@mgralikowski mgralikowski left a comment

Choose a reason for hiding this comment

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

Change a naming convention.

@yajra yajra merged commit 8fbc2ad into yajra:4.0 Apr 17, 2020
@yajra
Copy link
Owner

yajra commented Apr 17, 2020

Released on v4.25.0 🚀 Thanks!

yajra added a commit that referenced this pull request Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants