We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when using the table component with checkboxes, it should be possible to load data and use a selected value property.
like this
public function edit(string $id) { $role = Role::findOrFail($id); $permissions = Permission::orderBy('name')->get(['id','name']); // all possible permissions $role_permissions = '2,3,6'; // selected permissions, I tried all variants below // $role_permissions = [2,3,6]; // $role_permissions = [ 0 => 2, 1 => 3, 2 => 6 ]; // $role_permissions = [ 0 => '2', 1 => '3', 2 => '6' ]; return view('roles.edit', [ 'role' => $role, 'permissions' => $permissions, 'role_permissions' => $role_permissions, ]); }
<x-bladewind::card> <x-bladewind::table :data="$permissions" selected_value="{{ $role_permissions }}" name="role_permissions" selectable="true" checkable="true" divider="thin" /> </x-bladewind::card>
would be good to have a selected_value or checked_value property.
The text was updated successfully, but these errors were encountered:
This is a good catch @jaguarman. It was a complete oversight. I’ll add this in the next update.
Sorry, something went wrong.
5ac9e0f
mkocansey
No branches or pull requests
when using the table component with checkboxes, it should be possible to load data and use a selected value property.
like this
controller:
blade:
<x-bladewind::card> <x-bladewind::table :data="$permissions" selected_value="{{ $role_permissions }}" name="role_permissions" selectable="true" checkable="true" divider="thin" /> </x-bladewind::card>
would be good to have a selected_value or checked_value property.
The text was updated successfully, but these errors were encountered: