File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -210,13 +210,15 @@ class AdminForth implements IAdminForth {
210210 validateFieldGroups ( fieldGroups : {
211211 groupName : string ;
212212 columns : string [ ] ;
213+ noTitle ?: boolean ;
213214 } [ ] , fieldTypes : {
214215 [ key : string ] : AdminForthResourceColumn ;
215216} ) : void {
216217 if ( ! fieldGroups ) return ;
217218 const allColumns = Object . keys ( fieldTypes ) ;
218219
219220 fieldGroups . forEach ( ( group ) => {
221+ group . noTitle = group . noTitle ?? false ;
220222 group . columns . forEach ( ( col ) => {
221223 if ( ! allColumns . includes ( col ) ) {
222224 const similar = suggestIfTypo ( allColumns , col ) ;
Original file line number Diff line number Diff line change 11<template >
22 <div class =" rounded-lg shadow-resourseFormShadow dark:shadow-darkResourseFormShadow dark:shadow-2xl" >
3- <div v-if =" group.groupName" class =" text-md font-semibold px-6 py-3 flex flex-1 items-center dark:border-gray-600 text-gray-700 bg-lightFormHeading dark:bg-gray-700 dark:text-gray-400 rounded-t-lg" >
3+ <div v-if =" group.groupName && !group.noTitle " class =" text-md font-semibold px-6 py-3 flex flex-1 items-center dark:border-gray-600 text-gray-700 bg-lightFormHeading dark:bg-gray-700 dark:text-gray-400 rounded-t-lg" >
44 {{ group.groupName }}
55 </div >
66 <table class =" w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400" >
Original file line number Diff line number Diff line change @@ -357,18 +357,22 @@ export interface AdminForthResourceInputCommon {
357357 fieldGroups ?: {
358358 groupName : string ;
359359 columns : string [ ] ;
360+ noTitle ?: boolean ;
360361 } [ ] ;
361362 createFieldGroups ?: {
362363 groupName : string ;
363364 columns : string [ ] ;
365+ noTitle ?: boolean ;
364366 } [ ] ;
365367 editFieldGroups ?: {
366368 groupName : string ;
367369 columns : string [ ] ;
370+ noTitle ?: boolean ;
368371 } [ ] ;
369372 showFieldGroups ?: {
370373 groupName : string ;
371374 columns : string [ ] ;
375+ noTitle ?: boolean ;
372376 } [ ] ;
373377
374378 /**
You can’t perform that action at this time.
0 commit comments