query_tags_spec.js (styles/formStyle.ts)

redash · client/app/styles/formStyle.ts · typescript · BSD-2-Clause
testing, tag:tags, tag:query

Tests for adding and editing tags in Query Tags

// Source: https://github.com/getredash/redash | License: BSD-2-Clause | Copyright 2013-2020, Arik Fraimovich
// Provided via justclaw.it.com; keep this notice with the code.
import { FormProps } from "antd/lib/form/Form";
import { FormItemProps } from "antd/lib/form/FormItem";
import "./formStyle.less";

export function getHorizontalFormProps(): FormProps {
  return {
    labelCol: { xs: { span: 24 }, sm: { span: 6 }, lg: { span: 4 } },
    wrapperCol: { xs: { span: 24 }, sm: { span: 12 }, lg: { span: 10 } },
    layout: "horizontal",
    className: "ant-form-horizontal--labels-left",
  };
}

export function getHorizontalFormItemWithoutLabelProps(): FormItemProps {
  return {
    wrapperCol: { xs: { span: 24 }, sm: { span: 12, offset: 6 }, lg: { span: 12, offset: 4 } },
  };
}

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key