Giter Club home page Giter Club logo

nova-ajax-field's People

Contributors

jkharley avatar nea avatar rossjcooper avatar stephenhonor avatar stowez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nova-ajax-field's Issues

Relationships

After adding a record in the database, it's showing the ID's in the table. How can I use (belongsTo) so that it should show user name instead of the user_id?

How to protect api route?

I'm using this to search my users and return the value with id and email in pair.

AjaxField::make('Foo')->setUrl('/api/ajaxselect/users?search=Jon')

My questions is how to secure the api route? I used 'nova' middleware in my routes/api.php file. but it's not working.

Any help will be appreciated.

Thanks,
Ahmed

More info please

Could you please give some more detail to use this package.
By using the searchable() method in a BelongsTo field Iam getting the desired result but is slow.
As far as I understand your package overcomes this problem and can make a BelongTo field to show faster the results.
Is that correct?

Passing parameters

I've been trying to pass a parent param into the ajax request but I can't seem to find the value on the server side.

Goal is to get a list of contacts from HubSpot based on the selected Report Type.

// Route
Route::get('hubspot/contact-lists-test/', 'API\APINovaController@get_hubspot_contact_list_by_report_type')->name('api.hubspot.contact.list.by.id.test');

// controller
public function get_hubspot_contact_list_by_report_type(Request $request)

// nova page
Select::make('Report Type', 'report_type_id')->options($trReportTypes),
AjaxField::make('HubSpot List', 'hs_list_id')
->setUrl('/api/nova/hubspot/contact-lists-test')
->parent('report_type_id')
->typeInt(),

I believe my issue is with how the Route is set up into the controller. Could you review and let me know?

Nova Version: 2
Laravel Version: 6
PHP Version: 7.4

Import Field

What is import field path ?
This is message:
Class "App\Nova\AjaxField" not found
When I add
use Racorcretions\AjaxField;
message is the same.
Add it to readme.

placeholder not displayed

AjaxField::make('Foo')
->placeholder('Your custom placeholder')

In FormFiled.vue, set :

:placeholder="field.placeholder || field.name"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.