新しいBoxサポートサイトへようこそ。 変更点の詳細はこちらをご確認ください .

コメント

4件のコメント

  • architart

    i too am looking for this

    0
    コメントアクション Permalink
  • joeyc_3

    Hey,

     

    I got this working by importing the js file directly into my component 

     

    import { Component, OnInit } from '@angular/core';
    import '../../../box_content_explorer.js';

    declare var Box: any;

    @Component({
      selector: 'app-general',
      templateUrl: './general.component.html',
      styleUrls: ['./general.component.scss']
    })
    export class GeneralComponent implements OnInit {

      constructor() { }

      ngOnInit() {
        const contentExplorer = new Box.ContentExplorer();

        contentExplorer.show('FOLDER_ID', 'ACCESS_TOKEN', {
            container: '.container'
        });
      }
    }
     
     
     
     
     
    <div style="height:100vh" class="container">div>
    0
    コメントアクション Permalink
  • damocles

    How did you install the file locally? The NPM package requires react.

     

    Edit: okay I was able to copy the file served from the cdn and paste it in locally. Though I had to use the react one. No CSS yet

    0
    コメントアクション Permalink
  • kasee nadh reddy

    We can use the CDN Links of CSS and Scripts directly in index.html
    Refe this repository

    https://github.com/bojjakaseenadhreddy/integrate-box-ui-elments-in-anugular

    0
    コメントアクション Permalink

サインインしてコメントを残してください。