1"use strict";(globalThis.webpackChunkmission_control=globalThis.webpackChunkmission_control||[]).push([[411],{93565(e,n,t){t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>r,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"guide/views/table/columns/string","title":"String","description":"The string column type displays text values.","source":"@site/docs/guide/views/table/columns/string.md","sourceDirName":"guide/views/table/columns","slug":"/guide/views/table/columns/string","permalink":"/docs/guide/views/table/columns/string","draft":false,"unlisted":false,"editUrl":"https://github.com/flanksource/docs/tree/main/docs/guide/views/table/columns/string.md","tags":[],"version":"current","frontMatter":{"title":"String","sidebar_custom_props":{"icon":"mdi:format-text"}},"sidebar":"guide","previous":{"title":"Status","permalink":"/docs/guide/views/table/columns/status"},"next":{"title":"Examples","permalink":"/docs/guide/views/examples/"}}');var o=t(74848),i=t(28453);const r={title:"String",sidebar_custom_props:{icon:"mdi:format-text"}},a=void 0,c={},l=[{value:"Example",id:"example",level:2}];function m(e){const n={code:"code",h2:"h2",p:"p",pre:"pre",...(0,i.R)(),...e.components},{ColumnDef:t}=n;return t||function(e,n){throw new Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("ColumnDef",!0),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(n.p,{children:["The ",(0,o.jsx)(n.code,{children:"string"})," column type displays text values."]}),"\n",(0,o.jsx)(t,{}),"\n",(0,o.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-yaml",metastring:'title="cronjobs.yaml" file=<rootDir>/modules/mission-control/fixtures/views/cronjobs.yaml {18-19}',children:'apiVersion: mission-control.flanksource.com/v1\nkind: View\nmetadata:\n name: cronjobs\n namespace: mc\nspec:\n display:\n title: CronJobs\n icon: cronjob\n sidebar: true\n columns:\n - name: id\n type: string\n primaryKey: true\n hidden: true\n - name: name\n type: config_item\n - name: namespace\n type: string\n - name: status\n type: status\n badge:\n color:\n auto: true\n filter:\n type: multiselect\n - name: health\n type: health\n hidden: true\n filter:\n type: multiselect\n - name: created\n type: datetime\n queries:\n cronjobs:\n configs:\n search: "@order=name"\n types:\n - Kubernetes::CronJob\n mapping:\n created: row.created_at\n namespace: row.tags.namespace\n'})})]})}function u(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(m,{...e})}):m(e)}},28453(e,n,t){t.d(n,{R:()=>r,x:()=>a});var s=t(96540);const o={},i=s.createContext(o);function r(e){const n=s.useContext(i);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.