Skip to content

Instantly share code, notes, and snippets.

@jpsphaxer
jpsphaxer / multi_select_controller.js
Created July 17, 2025 00:31 — forked from jameskerr/multi_select_controller.js
Mutli Select Stimulus Controller
import Base from "controllers/base";
export default class extends Base {
static targets = ["checkbox", "toggler", "count", "menu", "hide"];
mount() {
this.on("turbo:morph", document, this.update);
this.on("click", this.togglerTarget, this.toggle);
}
import LocalAuthentication
class BiometricAuthenticationManager {
enum BiometricAuthenticationType {
case faceID(permitted: Bool)
case touchID
case none
}