Tabla class
- Inheritance
Constructors
-
Tabla({Key? key, required List<
List< lstRows, required List<RowTabla> >ColumnTabla> lstColumns, bool? hoverItem = true, double? altoColumna = 35, double? altoFila = 30, int? totalLista = 0, dynamic onTapRow(RowTabla)?, dynamic onFiltrar(Map<String, dynamic> )?, Map<String, dynamic> lstFiltros = const {}, Map<String, Map< lstOpcionesCampo = const {}, bool agregaPiePagina = true, bool? isQuitarFiltros = true, bool agregarBotonConfiguracion = false, Widget? botonConfiguracion, bool isVisibleConfiguracion = false, dynamic onInfoFilaHover(Map<String, dynamic> >String, int> )?, Color? hoverColor, String? textoPaginacion, dynamic onAnterior()?, dynamic onPosterior()?, int? subtotalLista, bool isVisiblePaginacion = false, dynamic onInicio()?, dynamic onFin()?, Map<String, String> ? estadosFiltro}) -
const
Properties
- agregaPiePagina → bool
-
final
- agregarBotonConfiguracion → bool
-
final
- altoColumna → double?
-
final
- altoFila → double?
-
final
- botonConfiguracion → Widget?
-
Este campo es para cuando se quiere agregar un Widget al final de la tabla
final
-
estadosFiltro
→ Map<
String, String> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoverColor → Color?
-
final
- hoverItem → bool?
-
final
- isQuitarFiltros → bool?
-
final
- isVisibleConfiguracion → bool
-
final
- isVisiblePaginacion → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
lstColumns
→ List<
ColumnTabla> -
final
-
lstFiltros
→ Map<
String, dynamic> -
final
-
lstOpcionesCampo
→ Map<
String, Map< String, dynamic> > -
Este campo es para cuando se quiere agregar un filtro a la tabla
y una columna requiere una lista de opciones para filtrar que se encuentra en otro lado
por ejemplo si la tabla es para visualizar usuarios
y se tiene una columna grupo que almacena el id del grupo.
Pero el usuario necesita filtrar por nombres de grupo
en ese caso se utiliza este campo donde se permite buscar por el valor del mapa pero se devuelve el key del mapa.
El primer mapa es el key de la columna a la cual se va a proporcionar las opciones
El segundo mapa es el mapa de opciones
final
-
lstRows
→ List<
List< RowTabla> > -
final
- onAnterior → dynamic Function()?
-
final
-
onFiltrar
→ dynamic Function(Map<
String, dynamic> )? -
final
- onFin → dynamic Function()?
-
final
-
onInfoFilaHover
→ dynamic Function(Map<
String, int> )? -
final
- onInicio → dynamic Function()?
-
final
- onPosterior → dynamic Function()?
-
final
- onTapRow → dynamic Function(RowTabla)?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtotalLista → int?
-
final
- textoPaginacion → String?
-
final
- totalLista → int?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< Tabla> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited