title: primeng - Select only one checkbox item at a time
body: <p>Is it possible to configure the primeng's <a href="https://www.primefaces.org/primeng/#/checkbox" rel="nofollow noreferrer">checkbox module</a> to behave as a selectbox, e.g. user can select only one checkbox at a time?</p>
  
  <p>My component:</p>
  
  <pre><code>&lt;div class="ui-g" style="width:250px;margin-bottom:10px"&gt;
      &lt;div class="ui-g-12"&gt;&lt;p-checkbox name="group1" value="New York" label="New York" [(ngModel)]="selectedCities" inputId="ny"&gt;&lt;/p-checkbox&gt;&lt;/div&gt;
      &lt;div class="ui-g-12"&gt;&lt;p-checkbox name="group1" value="San Francisco" label="San Francisco" [(ngModel)]="selectedCities" inputId="sf"&gt;&lt;/p-checkbox&gt;&lt;/div&gt;
      &lt;div class="ui-g-12"&gt;&lt;p-checkbox name="group1" value="Los Angeles" label="Los Angeles" [(ngModel)]="selectedCities" inputId="la"&gt;&lt;/p-checkbox&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Working stackblitz <a href="https://stackblitz.com/edit/primeng-template-lx5613" rel="nofollow noreferrer">example</a>.</p>