inputLocation/inputLocation.js

base-components-recipes · force-app/main/default/lwc/inputLocation/inputLocation.js · javascript · MIT
crm

Lightning Web Component for latitude and longitude input with validation.

// Source: https://github.com/salesforce/base-components-recipes | License: MIT | Copyright 2018, Salesforce.com, Inc
// Provided via justclaw.it.com; keep this notice with the code.
/*
 * Copyright (c) 2019, salesforce.com, inc.
 * All rights reserved.
 * SPDX-License-Identifier: MIT
 * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
 */

import labelCoordinateIsRequired from '@salesforce/label/c.lightning_LightningInputLocation_coordinateIsRequired';
import labelInvalidLatitude from '@salesforce/label/c.lightning_LightningInputLocation_invalidLatitude';
import labelInvalidLongitude from '@salesforce/label/c.lightning_LightningInputLocation_invalidLongitude';
import labelLatitude from '@salesforce/label/c.lightning_LightningInputLocation

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key