1"use strict";(self.webpackChunkdev=self.webpackChunkdev||[]).push([[11110],{58887:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>f,frontMatter:()=>a,metadata:()=>r,toc:()=>l});const r=JSON.parse('{"id":"reference/store-methods/flag.warn/readme","title":"flag.warn()","description":"This flags information at the warn level.","source":"@site/docs/reference/store-methods/flag.warn/readme.mdx","sourceDirName":"reference/store-methods/flag.warn","slug":"/reference/store-methods/flag.warn/","permalink":"/reference/store-methods/flag.warn/","draft":false,"unlisted":false,"editUrl":"https://codeberg.org/freesewing/freesewing/src/branch/develop/sites/dev/docs/reference/store-methods/flag.warn/readme.mdx","tags":[],"version":"current","frontMatter":{"title":"flag.warn()"},"sidebar":"tutorialSidebar","previous":{"title":"flag.tip()","permalink":"/reference/store-methods/flag.tip/"},"next":{"title":"generateMacroIds()","permalink":"/reference/store-methods/generatemacroids/"}}');var o=t(31085),s=t(71184);const a={title:"flag.warn()"},i=void 0,d={},l=[{value:"Signature",id:"signature",level:2}];function c(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(n.p,{children:["This flags information at the ",(0,o.jsx)(n.code,{children:"warn"})," level."]}),"\n",(0,o.jsxs)(n.p,{children:["Info that is flagged is stored in the store under ",(0,o.jsx)(n.code,{children:"plugins.plugin-annotations.flags.warn"}),".\nThe core library does nothing with this info, it is merely stored, much like logs are."]}),"\n",(0,o.jsx)(n.p,{children:"However, in our own UI on FreeSewing.org, we use this mechanism to allow\ndesigner to flag information to the user, and even suggest changes to the\npattern configuration."}),"\n",(0,o.jsx)(n.h2,{id:"signature",children:"Signature"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"undefined Store.flag.warn({\n title: 'Something to be mindful of',\n desc: 'Longer message here'\n})\n"})}),"\n",(0,o.jsx)(n.p,{children:"Since these methods are not part of FreeSewing's core API, what you pass to this method does depend on your own implementation."}),"\n",(0,o.jsx)(n.admonition,{title:"RELATED",type:"note",children:(0,o.jsxs)(n.p,{children:["The above Signature contains abbreviated information.\nFor full details about this method's Signature, Configuration, and\nExample usage, see ",(0,o.jsx)(n.a,{href:"/reference/store-methods/flag.info",children:"flag.info()"}),"."]})})]})}function f(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(c,{...e})}):c(e)}},71184:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>i});var r=t(14041);const o={},s=r.createContext(o);function a(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),r.createElement(s.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.