In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Idcops how to customize the display list field, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
What is a custom display of list fields
Friends who have used the consoles of major cloud vendors may know that a "⚙" icon in the upper right corner of the console list is the button for custom list items.
After clicking, you can choose which fields are displayed in the list, which is a feature that caters to the user's personal habits, especially if the user stays on the page longer (the user uses it for a long time).
List field customization in idcops is a combination of two more functions extended in this customizable list item. The details are as follows:
Fields are selectable
Fields can be sorted
Special field format can be modified
How to open the list Custom configuration page in idcops?
Home page-> module list (arbitrary list)-- > configuration list (upper right corner), see the following figure:
(context figure 1)
1. Fields are selectable
This is available in most of the consoles mentioned above, that is, which list fields can be displayed in the list after configuration, and some manufacturers have reserved fields in the console list configuration. Reserved fields, that is, fields that are not selectable, must be displayed in the list. The following is a screenshot of the CVM management list of some clouds:
Configure custom display fields in idcops
After opening the list configuration page (context figure 1), you can see that a checkbox selection box appears in the list header. If the display content is ticked, it will be displayed in the list, otherwise it will not be displayed.
two。 Fields can be sorted
Field sortability means that a user can define a field in front of or after another field. You can imagine it with the excel table.
As the screenshot is not easy to explain, the following is a screenshot of sorting a list field in idcops (please pay attention to the direction of the mouse and the changing effect of the list when watching).
3. Special field format can be modified
Special fields, usually in the format of date, time, currency, percentage, Boolean value, and so on.
You can see from (context figure 1) that the format of the date and time is the list special field I'm talking about here.
The special field format is modified in the second half of the screenshot above. Idcops simply displays the date and time and only the date for the date and time format in the list.
At this point, this is the end of the custom display of the management system backend list field. Here are some extended configurations of the list function of the idcops operation and maintenance system.
Idcops list extension configuration
You can see from the following figure that the content values of many fields in the list are of different colors.
Among them, it is divided into the following situations:
Object entry main link color (3F-HH08)
Object entries can be clicked to filter colors (whole cabinet, test customer 2)
Object entries are clickable, filter selectable colors, and reference the contents of the computer room option model object (main computer room 1, reserved cabinet)
For the third case in the list extension configuration, idcops can turn off this mode in django settings.py if it feels that the list looks colorful and affects the visual senses.
Configuration file path:
Django-idcops/idcops_proj/settings.py
Configuration content:
Will:
COLOR_FK_FIELD = True
Change to:
COLOR_FK_FIELD = False
OK, the effect is as follows:
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.