# Function view_linker

- view_linker(
  opts: {
  in_modal: object;
  link_bgcol?: string;
  link_bordercol?: string;
  link_icon?: string;
  link_size?: string;
  link_style?: string;
  link_textcol?: string;
  relation: string;
  textStyle?: string;
  view: string;
  view_label: object;
  view_label_formula: object;
  },
  fields: Field[],
  __?: (s: any) => any,
  isWeb?: boolean,
  user: any,
  targetPrefix?: string,
  state?: {},
  req: any,
  srcViewName: any,
  label_attr: any,
  in_row_click: any,
  ): object

  #### Parameters

  - opts: {
    in_modal: object;
    link_bgcol?: string;
    link_bordercol?: string;
    link_icon?: string;
    link_size?: string;
    link_style?: string;
    link_textcol?: string;
    relation: string;
    textStyle?: string;
    view: string;
    view_label: object;
    view_label_formula: object;
    }

    - ##### in_modal: object

    - ##### `Optional` link_bgcol?: string

    - ##### `Optional` link_bordercol?: string

    - ##### `Optional` link_icon?: string

    - ##### `Optional` link_size?: string

    - ##### `Optional` link_style?: string

    - ##### `Optional` link_textcol?: string

    - ##### relation: string

    - ##### `Optional` textStyle?: string

    - ##### view: string

    - ##### view_label: object

      missing in contract

    - ##### view_label_formula: object

  - fields: Field[]
  - __: (s: any) => any = ...
  - isWeb: boolean = true
  - user: any
  - targetPrefix: string = ""
  - state: {} = {}
  - req: any
  - srcViewName: any
  - label_attr: any
  - in_row_click: any

  #### Returns object

  - Defined in packages/saltcorn-data/base-plugin/viewtemplates/viewable_fields.js:394