多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
7.7 KiB

"use strict";(self.webpackChunknoco_docs=self.webpackChunknoco_docs||[]).push([[5334],{3905:(e,t,i)=>{i.d(t,{Zo:()=>p,kt:()=>m});var l=i(67294);function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,l)}return i}function r(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t){if(null==e)return{};var i,l,n=function(e,t){if(null==e)return{};var i,l,n={},a=Object.keys(e);for(l=0;l<a.length;l++)i=a[l],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)i=a[l],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var s=l.createContext({}),d=function(e){var t=l.useContext(s),i=t;return e&&(i="function"==typeof e?e(t):r(r({},t),e)),i},p=function(e){var t=d(e.components);return l.createElement(s.Provider,{value:t},e.children)},c="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return l.createElement(l.Fragment,{},t)}},u=l.forwardRef((function(e,t){var i=e.components,n=e.mdxType,a=e.originalType,s=e.parentName,p=o(e,["components","mdxType","originalType","parentName"]),c=d(i),u=n,m=c["".concat(s,".").concat(u)]||c[u]||f[u]||a;return i?l.createElement(m,r(r({ref:t},p),{},{components:i})):l.createElement(m,r({ref:t},p))}));function m(e,t){var i=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var a=i.length,r=new Array(a);r[0]=u;var o={};for(var s in t)hasOwnProperty.call(t,s)&&(o[s]=t[s]);o.originalType=e,o[c]="string"==typeof e?e:n,r[1]=o;for(var d=2;d<a;d++)r[d]=i[d];return l.createElement.apply(null,r)}return l.createElement.apply(null,i)}u.displayName="MDXCreateElement"},20563:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>s,contentTitle:()=>r,default:()=>f,frontMatter:()=>a,metadata:()=>o,toc:()=>d});var l=i(87462),n=(i(67294),i(3905));const a={title:"Rating",description:"This article explains how to create & work with a Rating field.",tags:["Fields","Field types","Custom types","Rating"],keywords:["Fields","Field types","Custom types","Rating","Create rating field"]},r=void 0,o={unversionedId:"fields/field-types/select-based/rating",id:"fields/field-types/select-based/rating",title:"Rating",description:"This article explains how to create & work with a Rating field.",source:"@site/docs/070.fields/040.field-types/030.select-based/030.rating.md",sourceDirName:"070.fields/040.field-types/030.select-based",slug:"/fields/field-types/select-based/rating",permalink:"/fields/field-types/select-based/rating",draft:!1,editUrl:"https://github.com/nocodb/nocodb/tree/develop/packages/noco-docs/docs/docs/070.fields/040.field-types/030.select-based/030.rating.md",tags:[{label:"Fields",permalink:"/tags/fields"},{label:"Field types",permalink:"/tags/field-types"},{label:"Custom types",permalink:"/tags/custom-types"},{label:"Rating",permalink:"/tags/rating"}],version:"current",sidebarPosition:30,frontMatter:{title:"Rating",description:"This article explains how to create & work with a Rating field.",tags:["Fields","Field types","Custom types","Rating"],keywords:["Fields","Field types","Custom types","Rating","Create rating field"]},sidebar:"tutorialSidebar",previous:{title:"Multi Select",permalink:"/fields/field-types/select-based/multi-select"},next:{title:"Links",permalink:"/fields/field-types/links-based/links"}},s={},d=[{value:"Create a checkbox field",id:"create-a-checkbox-field",level:2},{value:"Cell display",id:"cell-display",level:3},{value:"Setting value for the field",id:"setting-value-for-the-field",level:3},{value:"Unsetting value for the field",id:"unsetting-value-for-the-field",level:3},{value:"Supported icons",id:"supported-icons",level:3},{value:"Related fields",id:"related-fields",level:2}],p={toc:d},c="wrapper";function f(e){let{components:t,...a}=e;return(0,n.kt)(c,(0,l.Z)({},p,a,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("p",null,"The "),(0,n.kt)("h2",{id:"create-a-checkbox-field"},"Create a checkbox field"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},"Click on ",(0,n.kt)("inlineCode",{parentName:"li"},"+")," icon to the right of ",(0,n.kt)("inlineCode",{parentName:"li"},"Fields header")),(0,n.kt)("li",{parentName:"ol"},"On the dropdown modal, enter the field name (Optional)."),(0,n.kt)("li",{parentName:"ol"},"Select the field type as ",(0,n.kt)("inlineCode",{parentName:"li"},"Rating")," from the dropdown."),(0,n.kt)("li",{parentName:"ol"},"Select icon for the field; defaults to ",(0,n.kt)("inlineCode",{parentName:"li"},"star")," icon (Optional)."),(0,n.kt)("li",{parentName:"ol"},"Configure max count for the field; defaults to ",(0,n.kt)("inlineCode",{parentName:"li"},"5")," (Optional)."),(0,n.kt)("li",{parentName:"ol"},"Select color for the field; defaults to ",(0,n.kt)("inlineCode",{parentName:"li"},"grey")," (Optional)."),(0,n.kt)("li",{parentName:"ol"},"Set default value for the field (Optional)."),(0,n.kt)("li",{parentName:"ol"},"Click on ",(0,n.kt)("inlineCode",{parentName:"li"},"Save Field")," button.")),(0,n.kt)("p",null,(0,n.kt)("img",{alt:"image",src:i(19442).Z,width:"2874",height:"1416"})),(0,n.kt)("h3",{id:"cell-display"},"Cell display"),(0,n.kt)("p",null,"Cell displays the ratings in the color & icon selected for the field.",(0,n.kt)("br",{parentName:"p"}),"\n",(0,n.kt)("img",{alt:"image",src:i(34466).Z,width:"1264",height:"593"})),(0,n.kt)("h3",{id:"setting-value-for-the-field"},"Setting value for the field"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},"Click on the ",(0,n.kt)("inlineCode",{parentName:"li"},"nth")," rating icon to set the rating value for the field as ",(0,n.kt)("inlineCode",{parentName:"li"},"n"),"."),(0,n.kt)("li",{parentName:"ul"},"Key in the rating value in the cell to set the rating value for the field."),(0,n.kt)("li",{parentName:"ul"},"Paste the rating value in the cell to set the rating value for the field.")),(0,n.kt)("h3",{id:"unsetting-value-for-the-field"},"Unsetting value for the field"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},"Click on the ",(0,n.kt)("inlineCode",{parentName:"li"},"nth")," rating icon again to set the rating value for the field as ",(0,n.kt)("inlineCode",{parentName:"li"},"0"),"."),(0,n.kt)("li",{parentName:"ul"},"Key in ",(0,n.kt)("inlineCode",{parentName:"li"},"0")," in the cell to set the rating value for the field as ",(0,n.kt)("inlineCode",{parentName:"li"},"0"),"."),(0,n.kt)("li",{parentName:"ul"},"Key in ",(0,n.kt)("inlineCode",{parentName:"li"},"Delete")," to set the rating value for the field as ",(0,n.kt)("inlineCode",{parentName:"li"},"0"),".")),(0,n.kt)("h3",{id:"supported-icons"},"Supported icons"),(0,n.kt)("p",null,"NocoDB supports the following icons for the rating field type.",(0,n.kt)("br",{parentName:"p"}),"\n",(0,n.kt)("img",{alt:"image",src:i(30639).Z,width:"400",height:"445"})),(0,n.kt)("h2",{id:"related-fields"},"Related fields"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},(0,n.kt)("a",{parentName:"li",href:"/fields/field-types/select-based/checkbox"},"Checkbox"))))}f.isMDXComponent=!0},34466:(e,t,i)=>{i.d(t,{Z:()=>l});const l=i.p+"assets/images/rating-cell-ab9000c7aa5624758b22f06f59b5495e.png"},30639:(e,t,i)=>{i.d(t,{Z:()=>l});const l=i.p+"assets/images/rating-icon-06378f121f8364a58ce1b0da016f6b12.png"},19442:(e,t,i)=>{i.d(t,{Z:()=>l});const l=i.p+"assets/images/rating-7dcce304ae8fbf78908c340a87e90da4.png"}}]);