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

[Help] Unable to access dropdown constructed by renderer through Key controls #1133

Open
NivinCNC opened this issue Dec 31, 2024 · 1 comment
Labels
question Further information is requested stale This issue is stale because it has been open for 30 days with no activity.

Comments

@NivinCNC
Copy link

I am trying to implement a dropdown using render in a cell. I was able to open the dropdown through mouse click but i want to access the dropdown through keyboard. I know we can have select type in plutocolumntype for selecting options but i prefer dropdown as my option. Need help to acces this dropdown through keyboard navigation.

Sample Code:

  PlutoColumn (
        title: 'Unit',
        field: 'unit',
        type: PlutoColumnType.text(),
        width: 100,
        renderer: (rendererContext) {
          return DropdownButton<String>(
            value: "PCS",
            underline: const SizedBox.shrink(),
            items: const [
              DropdownMenuItem(
                value: 'PCS',
                child: Text('PCS', style: TextStyle(fontSize: 14)),
              ),
            ],
            onChanged: (dynamic value) {
              rendererContext.cell.value = value;
              gatherData();
            },
          );
        },
      ),
@NivinCNC NivinCNC added the question Further information is requested label Dec 31, 2024
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale This issue is stale because it has been open for 30 days with no activity. label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale This issue is stale because it has been open for 30 days with no activity.
Projects
None yet
Development

No branches or pull requests

1 participant