Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 3x 392x 70x 70x 140x | /* * Copyright (c) 2021, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import { LightningElement, api } from 'lwc'; export default class PreviewContent extends LightningElement { @api filename; @api extension; @api prefix; @api type; @api selected; @api content; get className() { const tagClass = 'slds-vertical-tabs__content preview-content-wrapper'; return this.selected === this.type ? `${tagClass} slds-show` : `${tagClass} slds-hide`; } get fileName() { return `${this.prefix ? this.prefix : ''}${this.filename}.${ this.extension }`; } } |