Source

ቅጥዕታት

ኣብነታትን መምርሒታት ኣጠቓቕማን ቅዲታት ምቁጽጻር ቅጥዒ፡ ኣማራጺታት ኣቀማምጣን ዝተፈላለዩ ቅጥዕታት ንምፍጣር ብሕታዊ ባእታታትን።

ሓፈሻዊ ትሕዝቶ

ናይ Bootstrap ቅጥዒ ቁጽጽር ኣብ ናትና Rebooted ቅጥዒ ቅዲታት ምስ ክፍልታት ይሰፍሕ። ነዞም ክፍልታት ተጠቐመሎም ኣብቲ ብዓይነት ዝተዳለወ ምርኢታቶም ንምምራጽ ንዝያዳ ቅኑዕ ኣቀራርባ ኣብ መላእ ኣሰጋገርትን መሳርሕታትን።

typeኣብ ኩሎም እታዎታት (ንኣብነት email፡ ንኣድራሻ ኢመይል ወይ ንቁጽራዊ ሓበሬታ) ግቡእ ባህሪ ምጥቃምካ ኣረጋግጽ number፡ ንሓደስቲ ናይ ምእታው ቁጽጽር ከም ናይ ኢመይል ምርግጋጽ፡ ቁጽሪ ምምራጽን ካልእን ንምጥቃም።

ቅዲታት ቅጥዒ ቡትስትራፕ ንምግላጽ ቅልጡፍ ኣብነት ኣብዚ ኣሎ። ንሰነዳት ብዛዕባ ዘድልዩ ክፍልታት፡ ኣቀማምጣ ቅጥዒን ካልእን ምንባብ ቀጽል።

ኢመይልካ ምስ ካልእ ሰብ ፈጺምና ኣይንካፈልን ኢና።
<form>
  <div class="form-group">
    <label for="exampleInputEmail1">Email address</label>
    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp">
    <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
  </div>
  <div class="form-group">
    <label for="exampleInputPassword1">Password</label>
    <input type="password" class="form-control" id="exampleInputPassword1">
  </div>
  <div class="form-group form-check">
    <input type="checkbox" class="form-check-input" id="exampleCheck1">
    <label class="form-check-label" for="exampleCheck1">Check me out</label>
  </div>
  <button type="submit" class="btn btn-primary">Submit</button>
</form>

ቅጥዒ ቁጽጽር

ናይ ጽሑፍ ቅርጺ መቆጻጸሪታት-ከም <input>s, <select>s, ከምኡውን <textarea>s-ምስ .form-controlክፍሊ ቅዲ ኣለዎም። ንሓፈሻዊ መልክዕ፡ ፎኮስ ኩነታት፡ ዓቐንን ካልእን ዝሕግዙ ቅዲታት ተኻቲቶም ኣለዉ።

ንዝያዳ ቅዲ s ብሕታዊ ቅጥዕታትና ምድህሳስኩም ኣረጋግጹ ።<select>

<form>
  <div class="form-group">
    <label for="exampleFormControlInput1">Email address</label>
    <input type="email" class="form-control" id="exampleFormControlInput1" placeholder="[email protected]">
  </div>
  <div class="form-group">
    <label for="exampleFormControlSelect1">Example select</label>
    <select class="form-control" id="exampleFormControlSelect1">
      <option>1</option>
      <option>2</option>
      <option>3</option>
      <option>4</option>
      <option>5</option>
    </select>
  </div>
  <div class="form-group">
    <label for="exampleFormControlSelect2">Example multiple select</label>
    <select multiple class="form-control" id="exampleFormControlSelect2">
      <option>1</option>
      <option>2</option>
      <option>3</option>
      <option>4</option>
      <option>5</option>
    </select>
  </div>
  <div class="form-group">
    <label for="exampleFormControlTextarea1">Example textarea</label>
    <textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
  </div>
</form>

ንኣእትዎታት ፋይል፡ ነቲ .form-control.form-control-file.

<form>
  <div class="form-group">
    <label for="exampleFormControlFile1">Example file input</label>
    <input type="file" class="form-control-file" id="exampleFormControlFile1">
  </div>
</form>

ሳይዚንግ ምግባር

ከምን ዝኣመሰሉ ክፍልታት ብምጥቃም ቁመት .form-control-lgኣቐምጥ .form-control-sm

<input class="form-control form-control-lg" type="text" placeholder=".form-control-lg">
<input class="form-control" type="text" placeholder="Default input">
<input class="form-control form-control-sm" type="text" placeholder=".form-control-sm">
<select class="form-control form-control-lg">
  <option>Large select</option>
</select>
<select class="form-control">
  <option>Default select</option>
</select>
<select class="form-control form-control-sm">
  <option>Small select</option>
</select>

ንንባብ ጥራይ

readonlyናይቲ እታው ዋጋ ምምሕያሽ ንምክልኻል ኣብ ሓደ እታው ቡልያን ባህሪ ምውሳኽ ። ንንባብ ጥራይ ዝኸውን እታዎታት ቀለልቲ ይመስሉ (ልክዕ ከምቲ ዝተሰናኸሉ እታዎታት)፣ ግን ነቲ መደበኛ መመልከቲ ይዕቅብዎ።

<input class="form-control" type="text" placeholder="Readonly input here..." readonly>

ንንባብ ጥራይ ዝኾነ ስሩዕ ጽሑፍ

<input readonly>ኣብ ቅጥዒኻ ዝርከቡ ባእታታት ከም ስሩዕ ጽሑፍ ቅዲ ክህልዎም እንተደሊኻ ፡ ነቲ .form-control-plaintextክፍሊ ተጠቒምካ ነቲ ነባሪ ቅዲ ዓውዲ ቅጥዒ ምእላይን ቅኑዕ ወሰንን ምዕቃብን ምዕቃብን።

<form>
  <div class="form-group row">
    <label for="staticEmail" class="col-sm-2 col-form-label">Email</label>
    <div class="col-sm-10">
      <input type="text" readonly class="form-control-plaintext" id="staticEmail" value="[email protected]">
    </div>
  </div>
  <div class="form-group row">
    <label for="inputPassword" class="col-sm-2 col-form-label">Password</label>
    <div class="col-sm-10">
      <input type="password" class="form-control" id="inputPassword">
    </div>
  </div>
</form>
<form class="form-inline">
  <div class="form-group mb-2">
    <label for="staticEmail2" class="sr-only">Email</label>
    <input type="text" readonly class="form-control-plaintext" id="staticEmail2" value="[email protected]">
  </div>
  <div class="form-group mx-sm-3 mb-2">
    <label for="inputPassword2" class="sr-only">Password</label>
    <input type="password" class="form-control" id="inputPassword2" placeholder="Password">
  </div>
  <button type="submit" class="btn btn-primary mb-2">Confirm identity</button>
</form>

ደረጃ እታዎታት

ብምጥቃም ብኣግማድ ዝሽከሉ ናይ ደረጃ እታዎታት ኣቐምጥ .form-control-range

<form>
  <div class="form-group">
    <label for="formControlRange">Example Range input</label>
    <input type="range" class="form-control-range" id="formControlRange">
  </div>
</form>

ሳጹናት ምልክትን ሬድዮታትን

ነባሪ ሳጹናት ምልክትን ሬድዮታትን ብሓገዝ .form-check, ንኽልቲኦም ዓይነታት ምእታው ዝኸውን ሓደ ክፍሊ ንኣቀማምጣን ባህርን ናይ HTML ባእታታቶም ዘመሓይሽ ይመሓየሹ ። ሳጹናት ምልክት ኣብ ሓደ ዝርዝር ሓደ ወይ ሓያሎ ኣማራጺታት ንምምራጽ ክኸውን ከሎ፡ ሬድዮታት ድማ ካብ ብዙሓት ሓደ ኣማራጺ ንምምራጽ ዝሕግዙ እዮም።

ስንክልና ዘለዎም ሳጹናት ምልክትን ሬድዮታትን ይድገፉ። እቲ disabledባህሪ ናይቲ ምእታው ኩነታት ንምምልካት ዝሕግዝ ፍኹስ ዝበለ ሕብሪ ክጥቀም እዩ።

ሳጹናት ምልክትን ሬድዮ መጠወቒታትን ኣብ ኤችቲኤምኤል ዝተመርኮሰ ቅጥዒ ምጽዳቕ ይድግፉን ጽፉፍን ተበጻሕን ስያመታት ይህቡን። ከምኡ ስለዝኾነ ድማ፡ ናትና <input>sን <label>sን ኣንጻር ሓደ <input>ኣብ ውሽጢ a <label>. እዚ ቁሩብ ዝያዳ ቃላት ዝመልኦ እዩ ምኽንያቱ ክትገልጾን ባህርያትን ክትገልጾ ኣለካ idነቲ and forንምትእስሳር .<input><label>

ነባሪ (ተደራሪቡ) .

ብነባሪ መልክዑ፡ ዝኾነ ቁጽሪ ናይቶም ናይ ቀረባ ሓው ዝኾኑ ሳጹናት ምልክትን ሬድዮታትን ብቐጥታ ክድምርን ብግቡእ ክፈላለዩን እዮም .form-check

<div class="form-check">
  <input class="form-check-input" type="checkbox" value="" id="defaultCheck1">
  <label class="form-check-label" for="defaultCheck1">
    Default checkbox
  </label>
</div>
<div class="form-check">
  <input class="form-check-input" type="checkbox" value="" id="defaultCheck2" disabled>
  <label class="form-check-label" for="defaultCheck2">
    Disabled checkbox
  </label>
</div>
<div class="form-check">
  <input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked>
  <label class="form-check-label" for="exampleRadios1">
    Default radio
  </label>
</div>
<div class="form-check">
  <input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios2" value="option2">
  <label class="form-check-label" for="exampleRadios2">
    Second default radio
  </label>
</div>
<div class="form-check">
  <input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios3" value="option3" disabled>
  <label class="form-check-label" for="exampleRadios3">
    Disabled radio
  </label>
</div>

ኣብ መስመር

.form-check-inlineሳጹናት ምልክት ወይ ሬድዮታት ኣብ ሓደ ኣግማድ መስርዕ ኣብ ዝኾነ ብምውሳኽ ምጉጅጃል .form-check

<div class="form-check form-check-inline">
  <input class="form-check-input" type="checkbox" id="inlineCheckbox1" value="option1">
  <label class="form-check-label" for="inlineCheckbox1">1</label>
</div>
<div class="form-check form-check-inline">
  <input class="form-check-input" type="checkbox" id="inlineCheckbox2" value="option2">
  <label class="form-check-label" for="inlineCheckbox2">2</label>
</div>
<div class="form-check form-check-inline">
  <input class="form-check-input" type="checkbox" id="inlineCheckbox3" value="option3" disabled>
  <label class="form-check-label" for="inlineCheckbox3">3 (disabled)</label>
</div>
<div class="form-check form-check-inline">
  <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1">
  <label class="form-check-label" for="inlineRadio1">1</label>
</div>
<div class="form-check form-check-inline">
  <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">
  <label class="form-check-label" for="inlineRadio2">2</label>
</div>
<div class="form-check form-check-inline">
  <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio3" value="option3" disabled>
  <label class="form-check-label" for="inlineRadio3">3 (disabled)</label>
</div>

ብዘይ መለለዪታት

ኣብ ውሽጢ ዝኾነ ናይ ስያመ ጽሑፍ ዘይብሎም .position-staticእታዎታት ወስኹ ። .form-checkሕጂ’ውን ንሓጋዚ ቴክኖሎጂታት ገለ ዓይነት ምልክት ምሃብ ኣይትረስዕ (ንኣብነት ምጥቃም aria-label).

<div class="form-check">
  <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
</div>
<div class="form-check">
  <input class="form-check-input position-static" type="radio" name="blankRadio" id="blankRadio1" value="option1" aria-label="...">
</div>

ንድፊ

Bootstrap ስለ display: blockዝሰርሕን width: 100%ዳርጋ ኣብ ኩሉ ናይ ቅጥዒ ቁጽጽርናን፡ ቅጥዕታት ብነባሪ ብቐጥታ ክድምር እዩ። ነዚ ኣቀማምጣ ብመሰረት ነፍሲ ወከፍ ቅጥዒ ንምቕያር ተወሳኺ ክፍልታት ክጥቀሙ ይኽእሉ።

ጉጅለታት ምፍጣር

እቲ .form-groupክፍሊ ገለ ቅርጺ ኣብ ቅጥዕታት ንምውሳኽ ዝቐለለ መንገዲ እዩ። ንሱ ድማ ብግቡእ ምጉጅጃል ስያመታት፣ ቁጽጽር፣ ኣማራጺ ሓገዝ ጽሑፍን ቅጥዒ ምጽዳቕ መልእኽቲን ዘተባብዕ ተዓጻጻፊ ክፍሊ ይህብ። ብነባሪ it only applies , ግን ከም ኣድላይነቱ margin-bottomተወሳኺ ቅዲታት ይወስድ ። ምስ s ፡ s ወይ ዳርጋ ምስ ዝኾነ ካልእ ባእታ .form-inlineተጠቐመሉ ።<fieldset><div>

<form>
  <div class="form-group">
    <label for="formGroupExampleInput">Example label</label>
    <input type="text" class="form-control" id="formGroupExampleInput" placeholder="Example input placeholder">
  </div>
  <div class="form-group">
    <label for="formGroupExampleInput2">Another label</label>
    <input type="text" class="form-control" id="formGroupExampleInput2" placeholder="Another input placeholder">
  </div>
</form>

ቅጥዒ ሽቦ

ዝያዳ ዝተሓላለኹ ቅጥዕታት ናትና ግሪድ ክፍልታት ተጠቒምካ ክህነጹ ይኽእሉ። ነዚኦም ንብዙሓት ዓምድታት፣ ዝተፈላለዩ ስፍሓትታትን ተወሳኺ ናይ ኣሰላልፋ ኣማራጺታትን ዝጠልቡ ኣቀማምጣ ቅጥዒ ተጠቐመሎም።

<form>
  <div class="row">
    <div class="col">
      <input type="text" class="form-control" placeholder="First name">
    </div>
    <div class="col">
      <input type="text" class="form-control" placeholder="Last name">
    </div>
  </div>
</form>

ቅጥዒ መስርዕ

.rowብተወሳኺ ን , ለውጢ ናይቲ መደበኛ መስርዕ ሽቦና ክትቅይር ትኽእል ኢኻ .form-rowእዚ ድማ ነቶም ነባሪ ዓምዲ ጐዳጉዲ ንዝተጠርነፉን ዝያዳ ውሱናትን ኣቀማምጣታት ዝሽርሽር እዩ።

<form>
  <div class="form-row">
    <div class="col">
      <input type="text" class="form-control" placeholder="First name">
    </div>
    <div class="col">
      <input type="text" class="form-control" placeholder="Last name">
    </div>
  </div>
</form>

ዝያዳ ዝተሓላለኹ ኣቀማምጣታት እውን ብስርዓት ሽቦ ክፈጥሩ ይኽእሉ እዮም።

<form>
  <div class="form-row">
    <div class="form-group col-md-6">
      <label for="inputEmail4">Email</label>
      <input type="email" class="form-control" id="inputEmail4">
    </div>
    <div class="form-group col-md-6">
      <label for="inputPassword4">Password</label>
      <input type="password" class="form-control" id="inputPassword4">
    </div>
  </div>
  <div class="form-group">
    <label for="inputAddress">Address</label>
    <input type="text" class="form-control" id="inputAddress" placeholder="1234 Main St">
  </div>
  <div class="form-group">
    <label for="inputAddress2">Address 2</label>
    <input type="text" class="form-control" id="inputAddress2" placeholder="Apartment, studio, or floor">
  </div>
  <div class="form-row">
    <div class="form-group col-md-6">
      <label for="inputCity">City</label>
      <input type="text" class="form-control" id="inputCity">
    </div>
    <div class="form-group col-md-4">
      <label for="inputState">State</label>
      <select id="inputState" class="form-control">
        <option selected>Choose...</option>
        <option>...</option>
      </select>
    </div>
    <div class="form-group col-md-2">
      <label for="inputZip">Zip</label>
      <input type="text" class="form-control" id="inputZip">
    </div>
  </div>
  <div class="form-group">
    <div class="form-check">
      <input class="form-check-input" type="checkbox" id="gridCheck">
      <label class="form-check-label" for="gridCheck">
        Check me out
      </label>
    </div>
  </div>
  <button type="submit" class="btn btn-primary">Sign in</button>
</form>

ልኡል ቅርጺ

.rowነቲ ክፍሊ ንጉጅለታት ብምውሳኽን ነቶም .col-*-*ክፍልታት ብምጥቃም ስፍሓት ናይ ስያመታትካን ቁጽጽራትካን ብምግላጽን ምስቲ ሽቦ ኣግማድ ቅጥዕታት ፍጠር። ርግጸኛ ኩን ኣብ s .col-form-labelናትካ <label>እውን ምውሳኽ ምእንቲ ንሳቶም ብቐጥታ ማእከል ምስቶም ተዛመድቲ ቅጥዒ ቁጽጽራቶም።

ኣብ ገለ እዋን፡ ምናልባት ነቲ ዘድልየካ ፍጹም ኣሰላልፋ ንምፍጣር፡ ማርጅን ወይ ፓዲንግ ዩቲሊቲስ ክትጥቀም የድልየካ ይኸውን። ንኣብነት padding-top፡ ነቲ ናይ ጽሑፍ መበገ�� መስመር ብዝበለጸ ንምስላፍ፡ ነቲ ኣብቲ ዝተደራረበ ናይ ሬድዮ እታዎታት ስያመና ኣውጺእናዮ ኣለና።

ሬድዮታት
ሳጹን ምልክት
<form>
  <div class="form-group row">
    <label for="inputEmail3" class="col-sm-2 col-form-label">Email</label>
    <div class="col-sm-10">
      <input type="email" class="form-control" id="inputEmail3">
    </div>
  </div>
  <div class="form-group row">
    <label for="inputPassword3" class="col-sm-2 col-form-label">Password</label>
    <div class="col-sm-10">
      <input type="password" class="form-control" id="inputPassword3">
    </div>
  </div>
  <fieldset class="form-group">
    <div class="row">
      <legend class="col-form-label col-sm-2 pt-0">Radios</legend>
      <div class="col-sm-10">
        <div class="form-check">
          <input class="form-check-input" type="radio" name="gridRadios" id="gridRadios1" value="option1" checked>
          <label class="form-check-label" for="gridRadios1">
            First radio
          </label>
        </div>
        <div class="form-check">
          <input class="form-check-input" type="radio" name="gridRadios" id="gridRadios2" value="option2">
          <label class="form-check-label" for="gridRadios2">
            Second radio
          </label>
        </div>
        <div class="form-check disabled">
          <input class="form-check-input" type="radio" name="gridRadios" id="gridRadios3" value="option3" disabled>
          <label class="form-check-label" for="gridRadios3">
            Third disabled radio
          </label>
        </div>
      </div>
    </div>
  </fieldset>
  <div class="form-group row">
    <div class="col-sm-2">Checkbox</div>
    <div class="col-sm-10">
      <div class="form-check">
        <input class="form-check-input" type="checkbox" id="gridCheck1">
        <label class="form-check-label" for="gridCheck1">
          Example checkbox
        </label>
      </div>
    </div>
  </div>
  <div class="form-group row">
    <div class="col-sm-10">
      <button type="submit" class="btn btn-primary">Sign in</button>
    </div>
  </div>
</form>
ልኡል ቅጥዒ ምልክት ዓቐን ምግባር

ንዓቐን ናይን ብትኽክል ንምክትታል ወይ .col-form-label-smናብ .col-form-label-lgs <label>ወይ s ምጥቃምካ ኣረጋግጽ ።<legend>.form-control-lg.form-control-sm

<form>
  <div class="form-group row">
    <label for="colFormLabelSm" class="col-sm-2 col-form-label col-form-label-sm">Email</label>
    <div class="col-sm-10">
      <input type="email" class="form-control form-control-sm" id="colFormLabelSm" placeholder="col-form-label-sm">
    </div>
  </div>
  <div class="form-group row">
    <label for="colFormLabel" class="col-sm-2 col-form-label">Email</label>
    <div class="col-sm-10">
      <input type="email" class="form-control" id="colFormLabel" placeholder="col-form-label">
    </div>
  </div>
  <div class="form-group row">
    <label for="colFormLabelLg" class="col-sm-2 col-form-label col-form-label-lg">Email</label>
    <div class="col-sm-10">
      <input type="email" class="form-control form-control-lg" id="colFormLabelLg" placeholder="col-form-label-lg">
    </div>
  </div>
</form>

ዓምዲ ምዕባይ

.colከምቲ ኣብ ዝሓለፉ ኣብነታት ዝተገልጸ፡ ስርዓት ሽቦና ዝኾነ ቁጽሪ s ኣብ ውሽጢ a .rowወይ ከተቐምጥ የኽእለካ .form-row። ነቲ ዘሎ ስፍሓት ብማዕረ ኣብ መንጎኦም ክመቕልዎ እዮም። ብተወሳኺ ንኡስ ስብስብ ዓምድታትካ ክትመርጽ ትኽእል ኢኻ ውሑድ ወይ ውሑድ ቦታ ክትወስድ፣ እቶም ዝተረፉ .cols ድማ ነቶም ዝተረፉ ብማዕረ ይመቕሉ፣ ምስ ፍሉያት ዓምድታት ክፍልታት ከም .col-7.

<form>
  <div class="form-row">
    <div class="col-7">
      <input type="text" class="form-control" placeholder="City">
    </div>
    <div class="col">
      <input type="text" class="form-control" placeholder="State">
    </div>
    <div class="col">
      <input type="text" class="form-control" placeholder="Zip">
    </div>
  </div>
</form>

ኣውቶ-ሳይዚንግ

እዚ ኣብ ታሕቲ ዘሎ ኣብነት flexbox ዩቲሊቲ ብምጥቃም ትሕዝቶታት ብቐጥታ ማእከል ብምግባር ዓምድታትካ ክንዲ ዘድሊ ቦታ ጥራይ ንኽወስዱ .colይቕየር ። .col-autoብኻልእ ኣዘራርባ፡ እቲ ዓምዲ ኣብ ትሕዝቶኡ ተመርኲሱ ንርእሱ ዓቐን ይገብሮ።

@
<form>
  <div class="form-row align-items-center">
    <div class="col-auto">
      <label class="sr-only" for="inlineFormInput">Name</label>
      <input type="text" class="form-control mb-2" id="inlineFormInput" placeholder="Jane Doe">
    </div>
    <div class="col-auto">
      <label class="sr-only" for="inlineFormInputGroup">Username</label>
      <div class="input-group mb-2">
        <div class="input-group-prepend">
          <div class="input-group-text">@</div>
        </div>
        <input type="text" class="form-control" id="inlineFormInputGroup" placeholder="Username">
      </div>
    </div>
    <div class="col-auto">
      <div class="form-check mb-2">
        <input class="form-check-input" type="checkbox" id="autoSizingCheck">
        <label class="form-check-label" for="autoSizingCheck">
          Remember me
        </label>
      </div>
    </div>
    <div class="col-auto">
      <button type="submit" class="btn btn-primary mb-2">Submit</button>
    </div>
  </div>
</form>

ድሕሪኡ ንሱ ዳግማይ ብዓቐን-ፍሉይ ዓምዲ ክፍልታት ዳግማይ ክትሓዋወሶ ትኽእል ኢኻ።

@
<form>
  <div class="form-row align-items-center">
    <div class="col-sm-3 my-1">
      <label class="sr-only" for="inlineFormInputName">Name</label>
      <input type="text" class="form-control" id="inlineFormInputName" placeholder="Jane Doe">
    </div>
    <div class="col-sm-3 my-1">
      <label class="sr-only" for="inlineFormInputGroupUsername">Username</label>
      <div class="input-group">
        <div class="input-group-prepend">
          <div class="input-group-text">@</div>
        </div>
        <input type="text" class="form-control" id="inlineFormInputGroupUsername" placeholder="Username">
      </div>
    </div>
    <div class="col-auto my-1">
      <div class="form-check">
        <input class="form-check-input" type="checkbox" id="autoSizingCheck2">
        <label class="form-check-label" for="autoSizingCheck2">
          Remember me
        </label>
      </div>
    </div>
    <div class="col-auto my-1">
      <button type="submit" class="btn btn-primary">Submit</button>
    </div>
  </div>
</form>

ከምኡ ውን ብርግጽ ብሕታዊ ቅጥዒ ቁጽጽር ይድገፍ።

<form>
  <div class="form-row align-items-center">
    <div class="col-auto my-1">
      <label class="mr-sm-2 sr-only" for="inlineFormCustomSelect">Preference</label>
      <select class="custom-select mr-sm-2" id="inlineFormCustomSelect">
        <option selected>Choose...</option>
        <option value="1">One</option>
        <option value="2">Two</option>
        <option value="3">Three</option>
      </select>
    </div>
    <div class="col-auto my-1">
      <div class="custom-control custom-checkbox mr-sm-2">
        <input type="checkbox" class="custom-control-input" id="customControlAutosizing">
        <label class="custom-control-label" for="customControlAutosizing">Remember my preference</label>
      </div>
    </div>
    <div class="col-auto my-1">
      <button type="submit" class="btn btn-primary">Submit</button>
    </div>
  </div>
</form>

ኣብ መስመር ዝቐርቡ ቅጥዕታት

ነቲ .form-inlineክፍሊ ተጠቒምካ ተኸታታሊ ስያመታት፣ ቅጥዒ ቁጽጽርን መጠወቒታትን ኣብ ሓደ ኣግማድ መስርዕ ንምርኣይ ተጠቐም። ኣብ ውሽጢ መስመር ቅጥዕታት ዝርከቡ ቁጽጽር ቅጥዒ ካብቲ ነባሪ ኩነታቶም ቁሩብ ይፈላለዩ።

  • ቁጽጽራት , ዝኾነ HTML ጻዕዳ ቦታ ዘፍርስን ምስ ርሕቀትን ፍሌክስቦክስ ዩቲሊቲታትን ናይ display: flexኣሰላልፋ ቁጽጽር ክትህብ ዘኽእለካ እዩ ።
  • ቁጽጽርን ምእታው ጉጅለታትን width: autoነቲ ናይ ቡትስትራፕ ነባሪ ንምግዳፍ ይቕበሉ width: 100%
  • ቁጽጽር ኣብ ሞባይል መሳርሒታት ጸቢብ ቪውፖርት ንምሕሳብ ብውሑዱ 576px ስፍሓት ዘለዎም ቪውፖርት ጥራይ እዮም ኣብ መስመር ዝረኣዩ ።

ስፍሓትን ኣሰላልፋን ናይ ውልቀ ቅጥዒ ቁጽጽር ምስ ናይ ርሕቀት መገልገሊታት ብኢድካ ክትኣልዮ ከድልየካ ይኽእል እዩ (ከምቲ ኣብ ታሕቲ ዘሎ)። ኣብ መወዳእታ <label>፡ ዋላ’ውን ካብ ዘይ-ስክሪንሪደር በጻሕቲ ምስ ክትሓብኦ እንተድኣ ኣድልዩካ፡ ኩሉ ግዜ ምስ ነፍሲ ወከፍ ቅጥዒ ምቁጽጻር ምሕዋስካ ኣረጋግጽ .sr-only

@
<form class="form-inline">
  <label class="sr-only" for="inlineFormInputName2">Name</label>
  <input type="text" class="form-control mb-2 mr-sm-2" id="inlineFormInputName2" placeholder="Jane Doe">

  <label class="sr-only" for="inlineFormInputGroupUsername2">Username</label>
  <div class="input-group mb-2 mr-sm-2">
    <div class="input-group-prepend">
      <div class="input-group-text">@</div>
    </div>
    <input type="text" class="form-control" id="inlineFormInputGroupUsername2" placeholder="Username">
  </div>

  <div class="form-check mb-2 mr-sm-2">
    <input class="form-check-input" type="checkbox" id="inlineFormCheck">
    <label class="form-check-label" for="inlineFormCheck">
      Remember me
    </label>
  </div>

  <button type="submit" class="btn btn-primary mb-2">Submit</button>
</form>

ብሕታዊ ቅጥዒ ቁጽጽርን ምምራጽን እውን ይድገፍ እዩ።

<form class="form-inline">
  <label class="my-1 mr-2" for="inlineFormCustomSelectPref">Preference</label>
  <select class="custom-select my-1 mr-sm-2" id="inlineFormCustomSelectPref">
    <option selected>Choose...</option>
    <option value="1">One</option>
    <option value="2">Two</option>
    <option value="3">Three</option>
  </select>

  <div class="custom-control custom-checkbox my-1 mr-sm-2">
    <input type="checkbox" class="custom-control-input" id="customControlInline">
    <label class="custom-control-label" for="customControlInline">Remember my preference</label>
  </div>

  <button type="submit" class="btn btn-primary my-1">Submit</button>
</form>
ኣማራጺታት ናይ ሕቡእ ስያመታት

ከም ስክሪን ሪደር ዝኣመሰሉ ሓገዝቲ ቴክኖሎጂታት ንነፍሲ ​​ወከፍ እታዎት ምልክት እንተዘይኣእቲኻዮም ኣብ ቅጥዕታትካ ጸገም ክህልዎም እዩ። .sr-onlyነዞም ኣብ ውሽጢ መስመር ዝርከቡ ቅጥዕታት፡ ነቲ ክፍሊ ተጠቒምካ ነቶም ስያመታት ክትሓብኦም ትኽእል ኢኻ ። ንሓገዝቲ ቴክኖሎጂታት ምልክት ንምሃብ ተወሳኺ ኣማራጺ ሜላታት ኣሎ፡ ከም aria-label, aria-labelledbyወይ titleባህሪ። ካብዚኦም ዝኾነ እንተዘይሃልዩ፡ ሓገዝቲ ቴክኖሎጂታት ነቲ ባህሪ ምጥቃም ክጥቀሙ ይኽእሉ እዮም ፡ እንተሃልዮም፡ ግን ከም መተካእታ ካልኦት ኣገባባት ምልክት placeholderምጥቃም ከምዘይምከር ኣስተውዕል ።placeholder

ናይ ሓገዝ ጽሑፍ

ብደረጃ ብሎክ ሓገዝ ጽሑፍ ኣብ ቅጥዕታት (ቅድሚ ሕጂ ኣብ v3 .form-textከም ዝፍለጥ ) ተጠቒምካ ምፍጣር ይከኣል። .help-blockናይ ውሽጢ መስመር ሓገዝ ጽሑፍ ዝኾነ ናይ ውሽጢ መስመር HTML ባእታን ዩቲሊቲ ክፍልታትን ከም .text-muted.

ናይ ሓገዝ ጽሑፍ ምስ ቁጽጽር ቅጥዒ ምትእስሳር

ናይ ሓገዝ ጽሑፍ ምስቲ ምስቲ ባህሪ ምጥቃም ዝዛመድ ናይ ቅጥዒ ምቁጽጻር ብግልጺ ክተሓሓዝ ኣለዎ aria-describedby። እዚ ድማ ሓገዝቲ ቴክኖሎጂታት-ከም ስክሪን ሪደርስ-እቲ ተጠቃሚ ኣብቲ ቁጽጽር ኣብ ዘተኩረሉ ወይ ምስ ኣተወ ነዚ ናይ ሓገዝ ጽሑፍ ከም ዘበስሩ ከረጋግጽ እዩ።

ኣብ ትሕቲ እታዎታት ዘሎ ናይ ሓገዝ ጽሑፍ ብ .form-text. እዚ ክፍሊ display: blockካብቶም ኣብ ላዕሊ ዘለዉ እታዎታት ንቐሊል ርሕቀት ገለ ላዕለዋይ ወሰን ዘጠቓልልን ዝውስኽን እዩ።

ፓስዎርድካ ካብ 8-20 ፊደላት ንውሓት ዘለዎ፣ ፊደላትን ቁጽርታትን ዝሓዘ ክኸውን ኣለዎ፣ ከምኡ’ውን ነጥቢ፣ ፍሉያት ፊደላት ወይ ኢሞጂ ክህልዎ የብሉን።
<label for="inputPassword5">Password</label>
<input type="password" id="inputPassword5" class="form-control" aria-describedby="passwordHelpBlock">
<small id="passwordHelpBlock" class="form-text text-muted">
  Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces, special characters, or emoji.
</small>

ኣብ መስመር ዘሎ ጽሑፍ ዝኾነ ልሙድ ናይ ውሽጢ መስመር HTML ባእታ (a <small>, <span>, ወይ ካልእ ይኹን) ብዘይካ ዩቲሊቲ ክፍሊ ንላዕሊ ካልእ ክጥቀም ይኽእል።

ካብ 8-20 ፊደላት ንውሓት ክህልዎ ኣለዎ።
<form class="form-inline">
  <div class="form-group">
    <label for="inputPassword6">Password</label>
    <input type="password" id="inputPassword6" class="form-control mx-sm-3" aria-describedby="passwordHelpInline">
    <small id="passwordHelpInline" class="text-muted">
      Must be 8-20 characters long.
    </small>
  </div>
</form>

ስንኩላን ቅጥዕታት

ኣብ ሓደ እታው ቡልያን ባህሪ ምውሳኽ disabledተጠቃሚ ምትእስሳር ንምክልኻልን ቀሊል ንኽመስልን።

<input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>

ንኹሉ ኣብ ውሽጢ ዘሎ ቁጽጽር ንምስንኻል ነቲ disabledባህሪ ናብ a ወስኸሉ ።<fieldset>

<form>
  <fieldset disabled>
    <div class="form-group">
      <label for="disabledTextInput">Disabled input</label>
      <input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">
    </div>
    <div class="form-group">
      <label for="disabledSelect">Disabled select menu</label>
      <select id="disabledSelect" class="form-control">
        <option>Disabled select</option>
      </select>
    </div>
    <div class="form-group">
      <div class="form-check">
        <input class="form-check-input" type="checkbox" id="disabledFieldsetCheck" disabled>
        <label class="form-check-label" for="disabledFieldsetCheck">
          Can't check this
        </label>
      </div>
    </div>
    <button type="submit" class="btn btn-primary">Submit</button>
  </fieldset>
</form>
መጠንቀቕታ ምስ መልህቕ

ብነባሪ፡ ዳህሰስቲ ንኹሎም ኣብ ውሽጢ a ዝርከቡ ተወላዲ ቅጥዒ ቁጽጽር ( <input>፡ ከምኡ’ውን ባእታታት) ከም ዝተሰናኸሉ ክሕዝዎም እዮም፡ እዚ ድማ ንኽልቲኦም ናይ ቁልፊ ሰሌዳን ማውስን ምትእስሳር ኣብኦም ክኽልክሉ እዮም <select>። ይኹን እምበር፡ ናትካ ቅጥዒ ባእታታት እውን ዘጠቓለለ እንተኾይኑ፡ እዚኦም ቅዲ ናይ . ከምቲ ኣብቲ ብዛዕባ ዝተሰናኸለ ኩነታት መጠወቒታት ዝብል ክፋል (ብፍላይ ድማ ኣብቲ ንኡስ ክፍሊ ንመልህቕ ባእታታት) ዝተገልጸ፡ እዚ ናይ CSS ባህሪ ገና ደረጃ ዘለዎ ኣይኮነን ኣብ ኢንተርነት ኤክስፕሎረር 10 ምሉእ ብምሉእ ኣይድገፍን እዩ፡ ከምኡ’ውን ተጠቀምቲ ሰሌዳ ቁልፊ ከይከውን ኣይክኽልክሎምን እዩ። ነዞም መላግቦታት ከተኩር ወይ ከንቀሳቕሶም ዝኽእል ምዃኑ’ዩ። ስለዚ ውሑስ ንምዃን፡ ከምዚ ዝኣመሰለ መላግቦታት ንምዕጻው ብሕታዊ ጃቫስክሪፕት ተጠቐም።<button><fieldset disabled><a ... class="btn btn-*">pointer-events: none

ስግረ-ብራውዘር ምትእስሳር

ቡትስትራፕ ነዞም ቅዲታት ኣብ ኩሎም ዳህሰስቲ ክጥቀመሎም እንከሎ፡ ኢንተርነት ኤክስፕሎረር 11ን ትሕቲኡን ግን ነቲ disabledባህሪ ኣብ ሓደ <fieldset>. ኣብዞም ዳህሰስቲ ንዘሎ ስብስብ ዓውዲ ንምስንኻል ብሕታዊ ጃቫስክሪፕት ተጠቐም።

ምጽዳቕ

ንተጠቀምትኻ ብኤችቲኤምኤል5 ቅጥዒ ምጽዳቕ ዋጋ ዘለዎ፣ ተግባራዊ ዝኾነ ግብረ መልሲ ምሃብ– ኣብ ኩሎም ዝድገፉ ኣሰጋገርትና ዝርከብ . ካብቲ ናይ መርበብ ሓበሬታ ነባሪ ናይ ምጽዳቕ ግብረ መልሲ ምረጽ፣ ወይ ድማ ብሕታዊ መልእኽትታት ምስቲ ኣብ ውሽጢ ዝተሃንጸ ክፍልታትናን ጀማሪ ጃቫስክሪፕትናን ተግባራዊ።

ኣብዚ እዋን’ዚ ብሕታዊ ቅዲታት ምጽዳቕ ክትጥቀሙ ንመክር፣ ምኽንያቱ ተወላዲ መርበብ ሓበሬታ ነባሪ መልእኽትታት ምጽዳቕ ኣብ ኩሎም መርበብ ሓበሬታታት (ብዓቢኡ፡ Chrome ኣብ ዴስክቶፕን ሞባይልን) ብቐጻሊ ንሓጋዚ ቴክኖሎጂታት ስለዘይቃልዑ።

ከመይ ይሰርሕ

ቅጥዒ ምጽዳቕ ምስ ቡትስትራፕ ብኸመይ ከም ዝሰርሕ ኣብዚ ኣሎ፤

  • ናይ HTML ቅጥዒ ምጽዳቕ ብመንገዲ ናይ CSS ክልተ ናይ ሓሶት ክፍልታት ይትግበር፣ :invalidከምኡውን :valid. <input>ን ፣ <select>፣ ከምኡውን <textarea>ባእታታት ይምልከት ።
  • ቡትስትራፕ ነቲ :invalidand :validቅዲታት ናብ ወላዲ .was-validatedክፍሊ ይሽፍኖ፣ መብዛሕትኡ ግዜ ኣብቲ <form>. እንተዘይኮይኑ ዝኾነ ዋጋ ዘይብሉ ዘድሊ ዓውዲ ኣብ ጽዕነት ገጽ ከም ዘይሕጋዊ ኮይኑ ይረአ። በዚ መንገዲ እዚ፡ መዓስ ከም እተነቓቕሖም ክትመርጽ ትኽእል ኢኻ (ብተለምዶ ድሕሪ ቅጥዒ ምቕራብ ምፍታን)።
  • መልክዕ ናይቲ ቅጥዒ ዳግማይ ንምትዕርራይ (ንኣብነት፡ ኣብ ጉዳይ ዳይናሚክ ቅጥዒ ምቕራብ AJAX ብምጥቃም)፡ ነቲ .was-validatedክፍሊ ካብቲ <form>ዳግማይ ድሕሪ ምቕራብ ኣውጽእዎ።
  • ከም ምምላስ፣ .is-invalidከምኡውን ክፍልታት ኣብ ክንዲ እቶም ናይ ሓሶት ክፍልታት ንናይ ኣገልጋሊ ወገን ምጽዳቕ.is-valid ክጥቀሙ ይኽእሉ . ናይ ወላዲ ክፍሊ ኣየድልዮምን እዩ ።.was-validated
  • <label>ብሰንኪ ደረታት ኣብ ከመይ ከም ዝሰርሕ CSS ፡ ብዘይ ሓገዝ ብሕታዊ ጃቫስክሪፕት ኣብ DOM ቅድሚ ቅጥዒ ቁጽጽር ዝመጽእ ቅዲታት (ኣብዚ እዋን) ክንትግብሮ ኣይንኽእልን ኢና ።
  • ኩሎም ዘመናውያን ዳህሰስቲ ነቲ ናይ ምድራት ምጽዳቕ ኤፒኣይ ይድግፉ ፣ እዚ ድማ ንመቆጻጸሪ ቅጥዒ ንምርግጋጽ ዝሕግዝ ተኸታታሊ ሜላታት ጃቫስክሪፕት እዩ።
  • መልእኽትታት ግብረ መልሲ ነቲ ናይ መርበብ ሓበሬታ ነባሪ ነገራት (ንነፍሲ ወከፍ መርበብ ሓበሬታ ዝተፈላለየ፡ ብመንገዲ CSS ድማ ቅዲ ዘይብሉ) ወይ ድማ ነቲ ብሕታዊ ቅዲታት ግብረ መልሲና ምስ ተወሳኺ HTMLን CSSን ክጥቀሙ ይኽእሉ።
  • setCustomValidityብሕታዊ ናይ ቅኑዕነት መልእኽትታት ምስ ኣብ ጃቫስክሪፕት ክትህብ ትኽእል ኢኻ ።

ነዚ ኣብ ግምት ብምእታው፡ ነዞም ዝስዕቡ ዲሞታት ንናይ ብሕታዊ ቅዲታት ምጽራይ ቅጥዒና፡ ኣማራጺ ናይ ኣገልጋሊ ጎኒ ክፍልታትን ነባሪ ናይ መርበብ ሓበሬታን ኣብ ግምት ኣእትዉ።

ብሕታዊ ቅዲታት

novalidateንብሕታዊ ናይ Bootstrap ቅጥዒ ምጽዳቕ መልእኽትታት፡ ነቲ ቡልያን ባህሪ ኣብቲ ናትካ ክትውስኾ ከድልየካ እዩ <form>። እዚ ነቲ ናይ መርበብ ሓበሬታ ነባሪ ናይ ግብረ መልሲ መሳርሒታት ምኽርታት የሰናኽሎ፣ ግን ሕጂ’ውን ናብቶም ኣብ ጃቫስክሪፕት ዘለዉ ናይ ቅጥዒ ምጽዳቕ ኤፒኣይታት መእተዊ ይህብ። ኣብ ታሕቲ ዘሎ ቅጥዒ ከተቕርቡ ፈትኑ፤ ጃቫስክሪፕትና ነቲ submit ዝብል መጠወቒ ዓጊቱ ግብረ መልሲ ክህበኩም እዩ። ከተቕርብ ኣብ እትፍትነሉ እዋን ፡ ኣብ ቁጽጽር ቅጥዕኻ ዝትግበሩን ቅዲታትን :invalidክትዕዘብ ኢኻ ።:valid

ብሕታዊ ቅዲታት ግብረ መልሲ ብሕታዊ ሕብርታት፣ ዶባት፣ ቅዲታት ትኹረትን ድሕረ ባይታ ምልክታትን ብምትግባር ግብረ መልሲ ብዝበለጸ ንምትሕልላፍ ይጥቀሙ። ድሕረ ባይታ ምልክታት ን <select>s ምስ ጥራይ እዮም ዝርከቡ .custom-select፣ ኣይኮኑን .form-control

Looks good!
Looks good!
@
Please choose a username.
Please provide a valid city.
Please select a valid state.
Please provide a valid zip.
You must agree before submitting.
<form class="needs-validation" novalidate>
  <div class="form-row">
    <div class="col-md-4 mb-3">
      <label for="validationCustom01">First name</label>
      <input type="text" class="form-control" id="validationCustom01" value="Mark" required>
      <div class="valid-feedback">
        Looks good!
      </div>
    </div>
    <div class="col-md-4 mb-3">
      <label for="validationCustom02">Last name</label>
      <input type="text" class="form-control" id="validationCustom02" value="Otto" required>
      <div class="valid-feedback">
        Looks good!
      </div>
    </div>
    <div class="col-md-4 mb-3">
      <label for="validationCustomUsername">Username</label>
      <div class="input-group">
        <div class="input-group-prepend">
          <span class="input-group-text" id="inputGroupPrepend">@</span>
        </div>
        <input type="text" class="form-control" id="validationCustomUsername" aria-describedby="inputGroupPrepend" required>
        <div class="invalid-feedback">
          Please choose a username.
        </div>
      </div>
    </div>
  </div>
  <div class="form-row">
    <div class="col-md-6 mb-3">
      <label for="validationCustom03">City</label>
      <input type="text" class="form-control" id="validationCustom03" required>
      <div class="invalid-feedback">
        Please provide a valid city.
      </div>
    </div>
    <div class="col-md-3 mb-3">
      <label for="validationCustom04">State</label>
      <select class="custom-select" id="validationCustom04" required>
        <option selected disabled value="">Choose...</option>
        <option>...</option>
      </select>
      <div class="invalid-feedback">
        Please select a valid state.
      </div>
    </div>
    <div class="col-md-3 mb-3">
      <label for="validationCustom05">Zip</label>
      <input type="text" class="form-control" id="validationCustom05" required>
      <div class="invalid-feedback">
        Please provide a valid zip.
      </div>
    </div>
  </div>
  <div class="form-group">
    <div class="form-check">
      <input class="form-check-input" type="checkbox" value="" id="invalidCheck" required>
      <label class="form-check-label" for="invalidCheck">
        Agree to terms and conditions
      </label>
      <div class="invalid-feedback">
        You must agree before submitting.
      </div>
    </div>
  </div>
  <button class="btn btn-primary" type="submit">Submit form</button>
</form>

<script>
// Example starter JavaScript for disabling form submissions if there are invalid fields
(function() {
  'use strict';
  window.addEventListener('load', function() {
    // Fetch all the forms we want to apply custom Bootstrap validation styles to
    var forms = document.getElementsByClassName('needs-validation');
    // Loop over them and prevent submission
    var validation = Array.prototype.filter.call(forms, function(form) {
      form.addEventListener('submit', function(event) {
        if (form.checkValidity() === false) {
          event.preventDefault();
          event.stopPropagation();
        }
        form.classList.add('was-validated');
      }, false);
    });
  }, false);
})();
</script>

ብራውዘር ነባሪ ይኸውን

ብሕታዊ ናይ ምጽዳቕ ግብረ መልሲ መልእኽትታት ወይ ናይ ቅጥዒ ባህርያት ንምቕያር ጃቫስክሪፕት ምጽሓፍ ተገዳስነት የብልካን? ኩሉ ጽቡቕ፡ ናይ መርበብ ሓበሬታ ነባሪ ክትጥቀም ትኽእል ኢኻ። ኣብ ታሕቲ ዘሎ ቅጥዒ ከተቕርቡ ፈትኑ። ከከም መርበብ ሓበሬታኻን ኦኤስካን ቁሩብ ዝተፈልየ ቅዲ ግብረ መልሲ ክትሪኢ ኢኻ።

እዞም ቅዲታት ግብረ መልሲ ብሲኤስኤስ ቅዲ ክግበሩ ዘይክእሉ እኳ እንተኾኑ፡ ሕጂ’ውን ነቲ ጽሑፍ ግብረ መልሲ ብመንገዲ ጃቫስክሪፕት ክትቅይሮ ትኽእል ኢኻ።

@
<form>
  <div class="form-row">
    <div class="col-md-4 mb-3">
      <label for="validationDefault01">First name</label>
      <input type="text" class="form-control" id="validationDefault01" value="Mark" required>
    </div>
    <div class="col-md-4 mb-3">
      <label for="validationDefault02">Last name</label>
      <input type="text" class="form-control" id="validationDefault02" value="Otto" required>
    </div>
    <div class="col-md-4 mb-3">
      <label for="validationDefaultUsername">Username</label>
      <div class="input-group">
        <div class="input-group-prepend">
          <span class="input-group-text" id="inputGroupPrepend2">@</span>
        </div>
        <input type="text" class="form-control" id="validationDefaultUsername"  aria-describedby="inputGroupPrepend2" required>
      </div>
    </div>
  </div>
  <div class="form-row">
    <div class="col-md-6 mb-3">
      <label for="validationDefault03">City</label>
      <input type="text" class="form-control" id="validationDefault03" required>
    </div>
    <div class="col-md-3 mb-3">
      <label for="validationDefault04">State</label>
      <select class="custom-select" id="validationDefault04" required>
        <option selected disabled value="">Choose...</option>
        <option>...</option>
      </select>
    </div>
    <div class="col-md-3 mb-3">
      <label for="validationDefault05">Zip</label>
      <input type="text" class="form-control" id="validationDefault05" required>
    </div>
  </div>
  <div class="form-group">
    <div class="form-check">
      <input class="form-check-input" type="checkbox" value="" id="invalidCheck2" required>
      <label class="form-check-label" for="invalidCheck2">
        Agree to terms and conditions
      </label>
    </div>
  </div>
  <button class="btn btn-primary" type="submit">Submit form</button>
</form>

ብወገን ኣገልጋሊ

.is-invalidብወገን ዓሚል ምጽዳቕ ክትጥቀም ንመክር፣ ግን ብወገን ኣገልጋሊ ምጽዳቕ ኣብ ዘድልየካ እዋን፣ ዘይሕጋዊን ቅኑዕን ናይ ቅጥዒ ዓውድታት ብን ከተመልክት ትኽእል ኢኻ .is-valid። ኣስተውዕል .invalid-feedbackምስዞም ክፍልታት እውን ይድገፍ እዩ።

ጽቡቕ ይመስል!
ጽቡቕ ይመስል!
@
በጃኹም ስም ተጠቃሚ ምረጹ።
በጃኹም ሕጋዊት ከተማ ኣቕርቡ።
በጃኹም ቅኑዕ ኩነታት ምረጹ።
በጃኹም ቅኑዕ ዚፕ ኣቕርቡ።
ቅድሚ ምቕራብኩም ክትሰማምዑ ኣለኩም።
<form>
  <div class="form-row">
    <div class="col-md-4 mb-3">
      <label for="validationServer01">First name</label>
      <input type="text" class="form-control is-valid" id="validationServer01" value="Mark" required>
      <div class="valid-feedback">
        Looks good!
      </div>
    </div>
    <div class="col-md-4 mb-3">
      <label for="validationServer02">Last name</label>
      <input type="text" class="form-control is-valid" id="validationServer02" value="Otto" required>
      <div class="valid-feedback">
        Looks good!
      </div>
    </div>
    <div class="col-md-4 mb-3">
      <label for="validationServerUsername">Username</label>
      <div class="input-group">
        <div class="input-group-prepend">
          <span class="input-group-text" id="inputGroupPrepend3">@</span>
        </div>
        <input type="text" class="form-control is-invalid" id="validationServerUsername" aria-describedby="inputGroupPrepend3" required>
        <div class="invalid-feedback">
          Please choose a username.
        </div>
      </div>
    </div>
  </div>
  <div class="form-row">
    <div class="col-md-6 mb-3">
      <label for="validationServer03">City</label>
      <input type="text" class="form-control is-invalid" id="validationServer03" required>
      <div class="invalid-feedback">
        Please provide a valid city.
      </div>
    </div>
    <div class="col-md-3 mb-3">
      <label for="validationServer04">State</label>
      <select class="custom-select is-invalid" id="validationServer04" required>
        <option selected disabled value="">Choose...</option>
        <option>...</option>
      </select>
      <div class="invalid-feedback">
        Please select a valid state.
      </div>
    </div>
    <div class="col-md-3 mb-3">
      <label for="validationServer05">Zip</label>
      <input type="text" class="form-control is-invalid" id="validationServer05" required>
      <div class="invalid-feedback">
        Please provide a valid zip.
      </div>
    </div>
  </div>
  <div class="form-group">
    <div class="form-check">
      <input class="form-check-input is-invalid" type="checkbox" value="" id="invalidCheck3" required>
      <label class="form-check-label" for="invalidCheck3">
        Agree to terms and conditions
      </label>
      <div class="invalid-feedback">
        You must agree before submitting.
      </div>
    </div>
  </div>
  <button class="btn btn-primary" type="submit">Submit form</button>
</form>

ዝድገፉ ባእታታት

ቅዲታት ምጽዳቕ ነዞም ዝስዕቡ ቅጥዒ ቁጽጽርን ኣካላትን ይርከቡ፤

  • <input>sን <textarea>sን ምስ ( ኣብ እታዎታት ጉጅለታት .form-controlክሳብ ሓደ ሓዊሱ ).form-control
  • <select>ስ ምስ .form-controlወይ.custom-select
  • .form-check
  • .custom-checkboxስን .custom-radioስን ዝበሃሉ ምዃኖም ይፍለጥ
  • .custom-file
በጃኹም ኣብቲ ናይ ጽሑፍ ቦታ መልእኽቲ ኣእትዉ።
ኣብነት ዘይሕጋዊ ጽሑፍ ግብረ መልሲ
ተወሳኺ ኣብነት ዘይሕጋዊ ግብረ መልሲ ጽሑፍ
ኣብነት ዘይሕጋዊ ብሕታዊ ምምራጽ ግብረ መልሲ
ኣብነት ዘይሕጋዊ ብሕታዊ ፋይል ግብረ መልሲ
<form class="was-validated">
  <div class="mb-3">
    <label for="validationTextarea">Textarea</label>
    <textarea class="form-control is-invalid" id="validationTextarea" placeholder="Required example textarea" required></textarea>
    <div class="invalid-feedback">
      Please enter a message in the textarea.
    </div>
  </div>

  <div class="custom-control custom-checkbox mb-3">
    <input type="checkbox" class="custom-control-input" id="customControlValidation1" required>
    <label class="custom-control-label" for="customControlValidation1">Check this custom checkbox</label>
    <div class="invalid-feedback">Example invalid feedback text</div>
  </div>

  <div class="custom-control custom-radio">
    <input type="radio" class="custom-control-input" id="customControlValidation2" name="radio-stacked" required>
    <label class="custom-control-label" for="customControlValidation2">Toggle this custom radio</label>
  </div>
  <div class="custom-control custom-radio mb-3">
    <input type="radio" class="custom-control-input" id="customControlValidation3" name="radio-stacked" required>
    <label class="custom-control-label" for="customControlValidation3">Or toggle this other custom radio</label>
    <div class="invalid-feedback">More example invalid feedback text</div>
  </div>

  <div class="form-group">
    <select class="custom-select" required>
      <option value="">Open this select menu</option>
      <option value="1">One</option>
      <option value="2">Two</option>
      <option value="3">Three</option>
    </select>
    <div class="invalid-feedback">Example invalid custom select feedback</div>
  </div>

  <div class="custom-file">
    <input type="file" class="custom-file-input" id="validatedCustomFile" required>
    <label class="custom-file-label" for="validatedCustomFile">Choose file...</label>
    <div class="invalid-feedback">Example invalid custom file feedback</div>
  </div>
</form>

ምኽሪ መሳርሒታት

ናትካ ቅጥዒ ኣቀማምጣ እንተፈቒዱሉ፡ ነቶም .{valid|invalid}-feedbackክፍልታት ብክፍልታት ክትቅይሮም ትኽእል ኢኻ .{valid|invalid}-tooltip፡ ኣብ ቅዲ ዘለዎ መሳርሒ ምኽሪ ናይ ምጽዳቕ ግብረ መልሲ ንምርኣይ። position: relativeንመሳርሒ ምኽሪ ኣቀማምጣ ዝኸውን ወላዲ ኣብ ልዕሊኡ ምህላውካ ኣረጋግጽ ። ኣብዚ ኣብ ታሕቲ ዘሎ ኣብነት፡ ናይ ዓምዲ ክፍልታትና ድሮ እዚ ኣለዎም፡ ፕሮጀክትካ ግን ኣማራጺ ምድላው ከድልዮ ይኽእል እዩ።

Looks good!
Looks good!
@
Please choose a unique and valid username.
Please provide a valid city.
Please select a valid state.
Please provide a valid zip.
<form class="needs-validation" novalidate>
  <div class="form-row">
    <div class="col-md-4 mb-3">
      <label for="validationTooltip01">First name</label>
      <input type="text" class="form-control" id="validationTooltip01" value="Mark" required>
      <div class="valid-tooltip">
        Looks good!
      </div>
    </div>
    <div class="col-md-4 mb-3">
      <label for="validationTooltip02">Last name</label>
      <input type="text" class="form-control" id="validationTooltip02" value="Otto" required>
      <div class="valid-tooltip">
        Looks good!
      </div>
    </div>
    <div class="col-md-4 mb-3">
      <label for="validationTooltipUsername">Username</label>
      <div class="input-group">
        <div class="input-group-prepend">
          <span class="input-group-text" id="validationTooltipUsernamePrepend">@</span>
        </div>
        <input type="text" class="form-control" id="validationTooltipUsername" aria-describedby="validationTooltipUsernamePrepend" required>
        <div class="invalid-tooltip">
          Please choose a unique and valid username.
        </div>
      </div>
    </div>
  </div>
  <div class="form-row">
    <div class="col-md-6 mb-3">
      <label for="validationTooltip03">City</label>
      <input type="text" class="form-control" id="validationTooltip03" required>
      <div class="invalid-tooltip">
        Please provide a valid city.
      </div>
    </div>
    <div class="col-md-3 mb-3">
      <label for="validationTooltip04">State</label>
      <select class="custom-select" id="validationTooltip04" required>
        <option selected disabled value="">Choose...</option>
        <option>...</option>
      </select>
      <div class="invalid-tooltip">
        Please select a valid state.
      </div>
    </div>
    <div class="col-md-3 mb-3">
      <label for="validationTooltip05">Zip</label>
      <input type="text" class="form-control" id="validationTooltip05" required>
      <div class="invalid-tooltip">
        Please provide a valid zip.
      </div>
    </div>
  </div>
  <button class="btn btn-primary" type="submit">Submit form</button>
</form>

ምምዕርራይ ምግባር

ናይ ምጽዳቕ ኩነታት ብመንገዲ Sass ምስቲ $form-validation-statesካርታ ክመዓራረዩ ይኽእሉ። ኣብ _variables.scssፋይልና ዝርከብ እዚ ሳስ ካርታ፡ ነባሪ valid/ invalidምጽዳቕ ኩነታት ንምፍጣር ሉፕ ይግበር። ሕብርን ምልክትን ነፍሲ ወከፍ ግዝኣት ንምምዕርራይ ዝሕግዝ ዝተሰነየ ካርታ ተሓዊስዎ ኣሎ። ካልኦት ግዝኣታት ብመርበባት ሓበሬታ ዝድገፉ እኳ እንተዘይኮኑ፡ እቶም ብሕታዊ ቅዲታት ዝጥቀሙ ግን ብቐሊሉ ዝያዳ ዝተሓላለኸ ናይ ቅጥዒ ግብረ መልሲ ክውስኹ ይኽእሉ።

ነዞም ክብርታት እዚኦም ነቲ ሚክሲን እውን form-validation-stateከይቀየርካዮ ክትቅይሮም ከምዘይንመክር ኣስተውዕል።

// Sass map from `_variables.scss`
// Override this and recompile your Sass to generate different states
$form-validation-states: map-merge(
  (
    "valid": (
      "color": $form-feedback-valid-color,
      "icon": $form-feedback-icon-valid
    ),
    "invalid": (
      "color": $form-feedback-invalid-color,
      "icon": $form-feedback-icon-invalid
    )
  ),
  $form-validation-states
);

// Loop from `_forms.scss`
// Any modifications to the above Sass map will be reflected in your compiled
// CSS via this loop.
@each $state, $data in $form-validation-states {
  @include form-validation-state($state, map-get($data, color), map-get($data, icon));
}

ብሕታዊ ቅጥዕታት

ንዝያዳ ምምዕርራይን ስግረ-መርበብ ቅኑዕነትን፡ ምሉእ ብምሉእ ብሕታዊ ቅጥዒ ባእታታትና ተጠቐም ነባሪ መርበብ ሓበሬታ ንምትካእ። ኣብ ልዕሊ ትርጉማውን ተበጻሕን ምልክት ዝተሃንጹ ስለዝኾኑ፡ ንዝኾነ ነባሪ ምቁጽጻር ቅጥዒ ጽኑዓት መተካእታ እዮም።

ሳጹናት ምልክትን ሬድዮታትን

<input>ነፍሲ ወከፍ ሳጹን ምልክትን ሬድዮን ምጽምባርን ብሕታዊ ቁጽጽርና ንምፍጣር <label>ኣብ ሓደ ተጠቕሊሉ ኣሎ ። <div>ብመዋቕራዊ መዳይ እዚ ከምቲ ናትና ነባሪ ኣገባብ እዩ .form-check.

~ንኹለን ግዝኣታትና ዝኸውን ናይ ሓው መምረጺ ( ) ንጥቀመሉ <input>-ከም :checked—ንብሕታዊ ቅጥዒ መመልከቲና ብግቡእ ቅዲ ንምግባር። ምስቲ ክፍሊ ምስ እንውሃሃድ፡ ንነፍሲ ​​ወከፍ ኣቕሓ ዝኸውን ጽሑፍ ኣብቲ 's state .custom-control-labelተመርኲስና ቅዲ ክንገብር እውን ንኽእል ኢና ።<input>

ነቲ ነባሪ <input>ምስ ንሓብኦን ነቲ opacityንጥቀመሉን .custom-control-labelኣብ ቦታኡ ሓድሽ ብሕታዊ ቅጥዒ መመልከቲ ብ ::beforeand ::after. እቲ ዘሕዝን ግን ካብ just the ብሕታዊ ክንሃንጽ ኣይንኽእልን ኢና <input>ምኽንያቱ CSS's contentኣብቲ ባእታ ስለዘይሰርሕ።

ኣብቲ ዝተፈተሹ ኩነታት ፡ ካብ Open Iconic ዝመጹ base64 ዝተሰረቱ SVG ምልክታት ንጥቀም ። እዚ ድማ ኣብ መላእ ዳህሰስቲን መሳርሕታትን ንቅዲን ኣቀማምጣን ዝበለጸ ቁጽጽር ይህበና።

ሳጹናት ምልክት

<div class="custom-control custom-checkbox">
  <input type="checkbox" class="custom-control-input" id="customCheck1">
  <label class="custom-control-label" for="customCheck1">Check this custom checkbox</label>
</div>

ብሕታዊ ሳጹናት ምልክት ብኢድ ብመንገዲ ጃቫስክሪፕት ክቕመጥ ከሎ እውን ነቲ ናይ ሓሶት ክፍሊ ክጥቀሙሉ ይኽእሉ እዮም :indeterminate(ንዕኡ ዝገልጾ ዝርከብ ናይ ኤችቲኤምኤል ባህሪ የለን)።

jQuery ትጥቀም እንተኾንካ ከምዚ ዓይነት ነገር እኹል ክኸውን ኣለዎ፤

$('.your-checkbox').prop('indeterminate', true)

ሬድዮታት

<div class="custom-control custom-radio">
  <input type="radio" id="customRadio1" name="customRadio" class="custom-control-input">
  <label class="custom-control-label" for="customRadio1">Toggle this custom radio</label>
</div>
<div class="custom-control custom-radio">
  <input type="radio" id="customRadio2" name="customRadio" class="custom-control-input">
  <label class="custom-control-label" for="customRadio2">Or toggle this other custom radio</label>
</div>

ኣብ መስመር

<div class="custom-control custom-radio custom-control-inline">
  <input type="radio" id="customRadioInline1" name="customRadioInline1" class="custom-control-input">
  <label class="custom-control-label" for="customRadioInline1">Toggle this custom radio</label>
</div>
<div class="custom-control custom-radio custom-control-inline">
  <input type="radio" id="customRadioInline2" name="customRadioInline1" class="custom-control-input">
  <label class="custom-control-label" for="customRadioInline2">Or toggle this other custom radio</label>
</div>

ስንኩል

ብሕታዊ ሳጹናት ምልክትን ሬድዮታትን እውን ክስረዙ ይኽእሉ እዮም። disabledነቲ ቡልያን ባህሪ ናብቲ ምውሳኽ <input>እሞ እቲ ብሕታዊ መመልከቲን መግለጺ ስያመን ብኣውቶማቲክ ቅዲ ክኸውን እዩ።

<div class="custom-control custom-checkbox">
  <input type="checkbox" class="custom-control-input" id="customCheckDisabled1" disabled>
  <label class="custom-control-label" for="customCheckDisabled1">Check this custom checkbox</label>
</div>

<div class="custom-control custom-radio">
  <input type="radio" name="radioDisabled" id="customRadioDisabled2" class="custom-control-input" disabled>
  <label class="custom-control-label" for="customRadioDisabled2">Toggle this custom radio</label>
</div>

ስዊች ይገብር

ሓደ ስዊች ናይ ብሕታዊ ምልክት ሳጹን ምልክት ኣለዎ ግን ነቲ .custom-switchክላስ ተጠቒሙ ንሓደ ቶግል ስዊች ንምቕራብ ይጥቀመሉ። ስዊች እውን ነቲ disabledባህሪ ይድግፍዎ።

<div class="custom-control custom-switch">
  <input type="checkbox" class="custom-control-input" id="customSwitch1">
  <label class="custom-control-label" for="customSwitch1">Toggle this switch element</label>
</div>
<div class="custom-control custom-switch">
  <input type="checkbox" class="custom-control-input" disabled id="customSwitch2">
  <label class="custom-control-label" for="customSwitch2">Disabled switch element</label>
</div>

ዝርዝር ምረጽ

ብሕታዊ <select>ምልክታታት ብሕታዊ ክፍሊ ጥራይ እዩ ዘድልዮም፣ .custom-selectነቶም ብሕታዊ ቅዲታት ንምብጋስ። ብሕታዊ ቅዲታት ኣብቲ ናይ መጀመርታ መልክዕ ናይቲ 's ዝተሓጽሩ ኮይኖም ብሰንኪ ድሩትነት መርበብ ሓበሬታ <select>ነቲ s ክቕይርዎ ኣይክእሉን እዮም ።<option>

<select class="custom-select">
  <option selected>Open this select menu</option>
  <option value="1">One</option>
  <option value="2">Two</option>
  <option value="3">Three</option>
</select>

ብተወሳኺ ካብ ንኣሽቱን ዓበይትን ብሕታዊ ምርጫታት ምስ ተመሳሳሊ ዓቐን ዘለዎም ናይ ጽሑፍ እታዎታትና ንኽሰማምዑ ክትመርጹ ትኽእሉ ኢኹም።

<select class="custom-select custom-select-lg mb-3">
  <option selected>Open this select menu</option>
  <option value="1">One</option>
  <option value="2">Two</option>
  <option value="3">Three</option>
</select>

<select class="custom-select custom-select-sm">
  <option selected>Open this select menu</option>
  <option value="1">One</option>
  <option value="2">Two</option>
  <option value="3">Three</option>
</select>

እቲ multipleባህሪ እውን ይድገፍ እዩ፤

<select class="custom-select" multiple>
  <option selected>Open this select menu</option>
  <option value="1">One</option>
  <option value="2">Two</option>
  <option value="3">Three</option>
</select>

ከምቲ sizeባህሪ ዘለዎ፤

<select class="custom-select" size="3">
  <option selected>Open this select menu</option>
  <option value="1">One</option>
  <option value="2">Two</option>
  <option value="3">Three</option>
</select>

ግዝፈት

ብሕታዊ <input type="range">ቁጽጽር ብ ፍጠር .custom-range. እቲ ትራክ (ድሕረ ባይታ)ን ኣጻብዕቲ ኢድን (እቲ ዋጋ) ክልቲኦም ኣብ መላእ መርበብ ሓበሬታታት ሓደ ዓይነት ንኽረኣዩ ቅዲ ኣለዎም። IEን Firefoxን ጥራይ ትራክኦም ካብ ጸጋማይ ወይ የማናይ ሸነኽ ኣጻብዕቲ ኢድ “ምምላእ” ከም መሳርሒ ምዕባለ ብዓይኒ ንምምልካት ስለ ዝድግፉ፡ ኣብዚ እዋን’ዚ ኣይንድግፎን ኢና።

<label for="customRange1">Example range</label>
<input type="range" class="custom-range" id="customRange1">

minደረጃ እታዎታት ንን max0ከምኡውን 100, ብቕደም ተኸተል ስዉር ክብርታት ኣለዎም ። ነቶም minand maxባህርያት ዝጥቀሙ ሓደስቲ ክብርታት ክትገልጽ ትኽእል ኢኻ።

<label for="customRange2">Example range</label>
<input type="range" class="custom-range" min="0" max="5" id="customRange2">

ብነባሪ፡ ደረጃ ምእታው ናብ ምሉእ ቁጽሪ ክብርታት “ስናፕ” ይገብር። ነዚ ንምቕያር step፡ ዋጋ ክትገልጽ ትኽእል ኢኻ። ኣብዚ ኣብ ታሕቲ ዘሎ ኣብነት፡ ንብዝሒ ስጉምትታት ብዕጽፊ ንውስኾ step="0.5"፡ .

<label for="customRange3">Example range</label>
<input type="range" class="custom-range" min="0" max="5" step="0.5" id="customRange3">

ፋይል ዳህሳሲ

እቲ ብሕታዊ ፋይል ምእታው ህያው ንምግባር ዝምከር ፕላግ-ኢን: bs-custom-file-input , ኣብዚ እዋን እዚ ኣብዚ ኣብ docsና ንጥቀመሉ ዘለና ንሱ እዩ።

እቲ ፋይል ምእታው ካብቲ ዕስለ እቲ ዝያዳ gnarly ኮይኑ ምስ ተግባራዊ Choose file... ከምኡ’ውን ዝተመርጸ ፋይል ስም ጽሑፍ ክትተሓሓዞም እንተደሊኻ ተወሳኺ ጃቫስክሪፕት ይሓትት ።

<div class="custom-file">
  <input type="file" class="custom-file-input" id="customFile">
  <label class="custom-file-label" for="customFile">Choose file</label>
</div>

<input>ነቲ ነባሪ ፋይል ብመንገዲ ንሓብኦ ኣብ opacityክንድኡ ድማ ነቲ <label>. እቲ መጠወቒ ብ ::after. ኣብ መወዳእታ ፡ ንከባቢ ዘለዎ ትሕዝቶ ግቡእ ርሕቀት ንምርካብ a widthand heighton the ንእውጅ።<input>

ምትርጓም ወይ ምምዕርራይ ሕብረ ቃላት ብ SCSS

እቲ :lang()ስውር ክፍሊ ነቲ “Browse” ዝብል ጽሑፍ ናብ ካልእ ቋንቋታት ንምትርጓም ንምፍቃድ ይጥቀመሉ። ኣብቲ ናይ Sass ተለዋዋጢ ኣታዊታት $custom-file-textምስቲ ዝምልከቶ ናይ ቋንቋ መለለዪን ከባብያዊ ሕብረ ቃላትን ምግዳፍ ወይ ምውሳኽ። እቶም ናይ እንግሊዝኛ ሕብረ ቃላት ብተመሳሳሊ መንገዲ ክመዓራረዩ ይኽእሉ እዮም። ንኣብነት፡ ሓደ ሰብ ትርጉም ስጳኛ ብኸመይ ክውስኸሉ ከም ዝኽእል እንሆ (ኮድ ቋንቋ ስጳኛ es)፦

$custom-file-text: (
  en: "Browse",
  es: "Elegir"
);

ኣብዚ lang(es)ንስጳንኛ ትርጉም ዝኸውን ብሕታዊ ፋይል ምእታው ብተግባር ኣሎ፤

<div class="custom-file">
  <input type="file" class="custom-file-input" id="customFileLang" lang="es">
  <label class="custom-file-label" for="customFileLang">Seleccionar Archivo</label>
</div>

ቅኑዕ ጽሑፍ ንኽርአ ቋንቋ ናይቲ ሰነድካ (ወይ ንኡስ ገረብኡ) ብትኽክል ከተቐምጦ ከድልየካ እዩ። እዚ ኣብቲ ባእታ ዘሎ langባህሪ ወይ ድማ HTTP header , ካብ ካልኦት ሜላታት ተጠቒምካ ክግበር ይከኣል ።<html>Content-Language

ነቶም ሕብረ ቃላት ብኤችቲኤምኤል ምትርጓም ወይ ምምዕርራይ

ቡትስትራፕ ብተወሳኺ ነቲ “Browse” ዝብል ጽሑፍ ብኤችቲኤምኤል ምስቲ data-browseኣብቲ ብሕታዊ ምእታው ስያመ ክውሰኽ ዝኽእል ባህሪ ንምትርጓም ዝሕግዝ መንገዲ ይህብ (ንኣብነት ብቋንቋ ሆላንድ)፦

<div class="custom-file">
  <input type="file" class="custom-file-input" id="customFileLangHTML">
  <label class="custom-file-label" for="customFileLangHTML" data-browse="Bestand kiezen">Voeg je document toe</label>
</div>