Skip to content

Commit

Permalink
feat: Add cellEditorParams to Grid component for limiting text length
Browse files Browse the repository at this point in the history
  • Loading branch information
bramses committed Aug 19, 2024
1 parent 033cdc8 commit 8a9b96d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app/[locale]/(auth)/dashboard/grid/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ const Grid = () => {
{
field: 'data',
cellEditor: 'agLargeTextCellEditor',
cellEditorParams: { maxLength: 5000 },
cellEditorPopup: true,
editable: true,
onCellValueChanged: (params: any) => {
Expand Down Expand Up @@ -175,6 +176,7 @@ const Grid = () => {
{
field: 'metadata',
cellEditor: 'agLargeTextCellEditor',
cellEditorParams: { maxLength: 5000 },
// cellEditor: CustomMetadataEditor,
cellEditorPopup: true,
editable: true,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Entry = ({
<h2 className="mb-2 text-lg font-semibold text-gray-900 dark:text-white">
Aliases:
</h2>
<ul className="max-w-md list-inside list-disc space-y-1 text-gray-500 dark:text-gray-400">
<ul className="list-inside list-disc space-y-1 text-gray-500 dark:text-gray-400">
{aliases.map((alias, index) => (
<li key={alias}>
{index === selectedIndex ? (
Expand Down

0 comments on commit 8a9b96d

Please sign in to comment.