7.32. Bootstrap5 drop-down menu

Release time : 2024-01-14 23:00:04 UTC      

The drop-down menu can be either a single-choice drop-down menu or a multi-choice drop-down menu.

Select the drop-down menu:

Image0

Select multiple drop-down menus:

Image1

Drop-down menu in Bootstrap5 <select> element can be used .form-select class to render:

7.32.1. Example

<select class="form-select">
  <option>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
</select>

The drop-down menu passes through .form-select-lg or .form-select-sm class to modify the size:

7.32.2. Example

<select class="form-select form-select-lg">
<select class="form-select">
<select class="form-select form-select-sm">

The effect is as follows:

Image2

disabled property to prevent the drop-down menu from being selected:

7.32.3. Example

<select class="form-select" disabled>
  <option>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
</select>

Data list

Bootstrap can also be accessed through datalist labeled as <input> element settings drop-down menu:

The following example selects a website from the list:

7.32.4. Example

<label for="browser" class="form-label">Choose your favorite website:</label>
<input class="form-control" list="sites" name="site" id="site">
<datalist id="sites">
  <option value="Google">
  <option value="Runoob">
  <option value="Taobao">
  <option value="Wiki">
  <option value="Zhihu">
</datalist>

The effect is as follows:

Image3

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.