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

How to add more filters Besides search box that is available for a specific entity #138

Open
taghaniali opened this issue Apr 20, 2016 · 11 comments

Comments

@taghaniali
Copy link

Hi,
1- How to add more filters Besides search box based on table fields ?
2- how to change row color of newly added records to a table?
thanks

@taghaniali
Copy link
Author

when i write the blow code in Entity's schema it produce error and says cruddy::js.schema_failed
protected $filters = [ 'column-name1' ,'column-name2'];

@lazychaser
Copy link
Contributor

You should specify field names, not column names

@taghaniali
Copy link
Author

my field names are as column names in Entity's schema

@lazychaser
Copy link
Contributor

Check laravel.log for errors

@taghaniali
Copy link
Author

The field resumes.course must implement Filter contract.

@lazychaser
Copy link
Contributor

This means that filed doesn't support filtering, sorry.

@taghaniali
Copy link
Author

thanks

On Wed, Apr 20, 2016 at 3:25 PM, Alexander Kalnoy notifications@github.com
wrote:

This means that filed doesn't support filtering, sorry.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#138 (comment)

Regards,
Taghani Ali.

@taghaniali
Copy link
Author

what must be the implementation of isNew() function in code blow?
$schema->states(function ($model)
{
return $model->isNew() : 'new' : '';
});

@lazychaser
Copy link
Contributor

Maybe compare to date, i.e. created within hour. Im not sure what you want
20 апр. 2016 г. 15:14 пользователь "taghaniali" notifications@github.com
написал:

what must be the implementation of isNew() function in code blow?
$schema->states(function ($model)
{
return $model->isNew() : 'new' : '';

});


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#138 (comment)

@taghaniali
Copy link
Author

THANKS

On Wed, Apr 20, 2016 at 8:18 PM, Alexander Kalnoy notifications@github.com
wrote:

Maybe compare to date, i.e. created within hour. Im not sure what you want
20 апр. 2016 г. 15:14 пользователь "taghaniali" notifications@github.com
написал:

what must be the implementation of isNew() function in code blow?
$schema->states(function ($model)
{
return $model->isNew() : 'new' : '';

});


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#138 (comment)


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#138 (comment)

Regards,
Taghani Ali.

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

No branches or pull requests

2 participants