Moped Documentation
  • Welcome 👋
  • User Guides
    • Getting started
    • Map a project
  • Product Management
    • User communication
    • User management
    • User analytics
    • Local testing
    • Release process
    • Patch release process
    • MUI X Pro License
    • Integrations
      • Dataset documentation
      • ArcGIS Online
      • eCapris
      • Power BI
    • Features
  • Dev Guides
    • DB Docs & Data dictionary
    • Database backup policy
    • Moped Read Replica
    • How-to's
      • How do I start the Hasura cluster locally?
      • How do I launch the Hasura Console?
      • How do I get a JWT token?
      • How to ping the GraphQL API
      • How to ping the REST API
      • How do I connect a database with Postgres GUIs?
      • How do I connect to the RDS instance?
      • How to load production data into a local instance
      • How do I update seed data?
    • Hasura
      • Hasura Roles
      • Hasura Migrations
        • Getting Started
        • Installing the Hasura CLI
        • Configuration Files
        • Hasura Migration Principles
        • The Migration file format
        • Development
        • Hasura Seed Data
        • Running the Hasura Cluster Locally (video)
        • Create a migration: Exercise 1 (video)
        • Create a migration: Exercise 2 (video)
        • Latest hasura-cluster features
    • User Management
    • Authentication
      • Authentication Architecture
      • DynamoDB & Cognito
      • Secrets Manager & Cognito
      • Hasura & Cognito
      • React & Cognito
      • Flask API & Cognito
      • Single Sign-On with CTM
    • Code organization
    • API
      • Configuration Files
      • Testing
      • User Management API
    • Maps and geospatial data
      • Access tokens and API keys
      • Map libraries
      • Map data
      • Map styles
      • Map layers and basemaps
      • React patterns
      • V1 Archive
        • Map libraries
        • Map data
        • Map custom hooks
        • Map styles
        • Map layers and basemaps
    • UI access control
    • Design system
      • Branding
      • Component styles
      • Text content
    • Activity Log
      • Architecture
      • GitHub Actions and Deployment of Updates
      • Hasura Event Logs and Truncate Cron Job
      • Authentication
  • See also
  • Get Moped support, report a bug, or request an enhancement
  • Data & Technology Services
  • Github repository
Powered by GitBook
On this page

Was this helpful?

  1. Dev Guides
  2. API

Configuration Files

FieldConfiguration for DataTable

  • table object, required

    • name string

    • update (object)

      • mutationName string

      • mutationTable string

      • where

  • fields object, contains field objects

    • {field_object}

      • label string, if not provided DataTable will default to "Unknown"

      • labelStyle optional, style class

      • type options are "date", "boolean" or "string". if not provided, data table defaults to "string"

      • emptyValue if not provided, data table defaults to "None"

      • placeholder string, what should the field have as a placeholder

      • editable Boolean, if not provided defaults to True

      • multiline boolean

      • multiline rows

      • nullable Boolean, false if field cannot be set to empty string

      • errorMessage string, optional

      • widthsmallandlarger int, sets <Grid sm=widthSmallAndLarger>, if not provided, defaults to 6

      • dependent field if theres a field that needs to be updated along with current field

      • options DataTable comment says this must exist for select field if no lookup object provided

      • lookup (object) used for select input fields

        • table name of table used in lookup query

        • fieldlabel needed for lookup table query

        • fieldvalue needed for lookup table query

        • relationship if not provided, relationship defaults to ""

        • style

        • format function to format data for display

PreviousAPINextTesting

Last updated 3 years ago

Was this helpful?